-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Can't ignore changes for aws_ecs_service load_balancer.0.target_group_arn (for CodeDeploy blue-green deploys) #13192
Comments
I've just ignored the complete load_balancer block, because all 3 values ( In other words, my lifecycle looks like this:
|
@chrysalis69 For task_definition , you could use this snippet: Just find with I also experience this bug with CodeDeploy B/G deployments |
Hey @jfirebaugh 👋 Thank you for taking the time to submit this issue. Given that there's been a few AWS Provider releases since you initially filed it, can you confirm whether you're still experiencing this behavior? |
It's still a provider issue, albeit one that has viable workarounds as others have noted. |
Any progress? |
this is an issue with more than just this is an issue with any resource currently using a |
any changes here? |
any update here? |
Still occurring in version 5.4 of the AWS provider. |
Thanks all for reporting the issue and participating in the discussion. The For this specific case, To ignore changes, you could ignore changes to the whole Set, using lifecycle {
ignore_changes = [load_balancer]
} as suggested above. If the other values should not be ignored, I suggest requesting the feature from the Terraform project. In a previous report (hashicorp/terraform#22504 (comment)) they suggested that ignoring individual parameters of set members would be "a very limited use case". You could open a new issue with them and indicate how it is useful. |
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. |
Community Note
Terraform Version
Affected Resource(s)
aws_ecs_service
Terraform Configuration Files
Expected Behavior
The
target_group_arn
key of the first load_balancer set should be ignored. This is necessary for using CodeDeploy blue-green deployments, which modify this property outside of terraform's control.Actual Behavior
When running
terraform plan
, the following error is output:References
This was previously reported in #9776. @bflad said there to open an issue in terraform core repository. @ryzr did so: hashicorp/terraform#22504. Then that issue was closed by @ryzr saying to open an issue here again. So that's what I'm doing. Please consider @jbardin's suggestion of using a TypeList rather than a Set.
The text was updated successfully, but these errors were encountered: