Open simoleone opened 2 years ago
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.
If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!
This is still relevant.
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
https://gist.github.com/simoleone/9a29bf871b6a58b052e3fb06f1c49445
Panic Output
Expected Behavior
The AWS provider should use the SetRulePriorities API call to update the priority without forcing a replacement of the resource.
Actual Behavior
The AWS provider replaces the resource.
If the rule had been modified by CodeDeploy blue/green strategy, this can be catastrophic since the active target group cannot be known by terraform and the new rule created by the replacement may not send traffic to the active target group, resulting in an outage.
Steps to Reproduce
terraform apply
priority
of theaws_alb_listener_rule
to another value.terraform apply
aws_alb_listener_rule
needs to be replaced.Important Factoids
We are using CodeDeploy with the blue/green deployment strategy. I did not include this in the example to make it as simple as possible, but it's relevant to know that this is our actual use-case.
References
0000