Closed yanngit closed 1 month ago
Voting for Prioritization
Volunteering to Work on This Issue
I reproduced this, may I pick this up?
As the documentation states to remove all target group attachments need to give empty list. Tested with this approach it works. AFAIK since target_group_arns
is both Optional: true
and Computed: true
when operator removes the field from the configuration, terraform defines current state via api calls to aws, since they are same (real asg is connected to real tg) there will be no diff.
target_group_arns - (Optional) Set of aws_alb_target_group ARNs, for use with Application or Network Load Balancing. To remove all target group attachments an empty list should be specified.
Since we also have traffic_source
computed looks necessary if we remove Computed
true code will be more complex due to adding same destination in 2 places. I think it's ok to close the issue.
Hey @yanngit 👋 Thank you for taking the time to raise this! As @eugercek mentioned above, it looks like this is functioning as expected and documented. With that in mind, I'm going to close this.
Thank you to @eugercek for the quick investigation and response here!
[!WARNING] This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.
Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform Core Version
1.9.6
AWS Provider Version
5.64.0
Affected Resource(s)
aws_autoscaling_group
Expected Behavior
commenting target_group_arns should remove from AWS the load balancer target group
Actual Behavior
On AWS, the auto scaling group is still having references to the target group deleted. This is causing an issue when the auto scaling group should spawn a new instance of EC2 since it cannot find the deleted target group.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
None