-
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
resource/aws_autoscaling_group: Unexpected Removal of Target Group ARNs in version 2.21.0 #9513
Comments
Not sure if this is caused by #9478 ? |
This is happening also to me since today |
happening to me too, when you apply multiple times in a row it is alternating between destroying and creating |
also faced with this problem |
Hi folks 👋 Sorry for the unexpected new behavior here. 😖 The change within #9478 to start showing the difference of missing configurations of While we sort out the best course of action (potentially reverting the change and cutting a 2.21.1 bug fix release), you have a few options to deal with this situation:
# Compatible in all versions of Terraform
resource "aws_autoscaling_group" "example" {
# ... other configuration ...
lifecycle {
ignore_changes = ["load_balancers", "target_group_arns"]
}
}
# Terraform 0.12 and later syntax
resource "aws_autoscaling_group" "example" {
# ... other configuration ...
lifecycle {
ignore_changes = [load_balancers, target_group_arns]
}
}
# Compatible in Terraform 0.10 and later
provider "aws" {
# ... potentially other configuration ...
version = "2.20.0"
}
# Terraform 0.12 and later only (applies provider version constraint globally)
terraform {
# ... potentially other configuration ...
required_providers {
# ... potentially other configuration ...
aws = "2.20.0"
}
} If we revert this change, it is likely to occur again with more proper notice in the next major version release of the Terraform AWS Provider, so if possible, we would recommend the My apologies again for the unexpected and unannounced change in this behavior. We will update this issue in the next few hours with our plan of action. |
This will be the suggested route forward when using |
This also affects terraform version: v0.11.11 |
… target_group_arns Computed behavior The original change will likely occur in a future major version of the Terraform AWS Provider. Reference: #9513 Output from acceptance testing: ``` --- PASS: TestAccAWSAutoScalingGroup_WithLoadBalancer_ToTargetGroup (645.69s) ```
Please note that we will be cutting a version 2.21.1 of the Terraform AWS Provider shortly with a fix that reverts the change. Associated pull request: #9518 As mentioned above, this change will likely be redone in a future major version of the Terraform AWS Provider to fix the behavior seen in: #5197 |
This has been released in version 2.21.1 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, documentation updates, 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! |
Community Note
Terraform Version
0.11.14
Affected Resource(s)
Terraform Configuration Files
3 resources similar to:
Debug Output
Panic Output
Expected Behavior
When planning using 2.20.0, No infrastructure changes are planned. Expectation is that this remains the case with 2.21.0.
Actual Behavior
Using 2.21.0 produced the following plan:
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: