-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing target groups from aws_autoscaling_group does not remove it on AWS #3265
Comments
I can confirm that this is still a problem with AWS provider version 1.46.0 It's actually quite a dangerous bug if the target group it refers to no longer exists; It causes autoscaling to fail to replace instances as they are terminated. In my case, our test environment scales down at night and failed to scale back up in the morning. However, when autoscaling groups are used (as they are most commonly) for 24 hour high availability and self-healing, this self healing would fail to happen in the case of outage / spot price termination etc. This could happen months removed from the terraform change to the ASG. |
Can confirm the problem. The same way,
|
Confirming this with the following versions.
|
The associated changes have been merged and will release with the upcoming |
This has been released in version 3.0.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
I've tested this a couple of times. Attaching an NLB to the ASG using a target group and then removing it again, terraform does not remove it from AWS
Terraform Version
v0.11.1
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Configuration Files
Expected Behavior
Terraform should have removed the target group from the ASG on AWS
Actual Behavior
The ASG remained attached to the ASG
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
target_group_arns
terraform apply
- nothing to changeThe text was updated successfully, but these errors were encountered: