AWS provider 5.77 added support for availability_zone_rebalancing in PR 40225. The availability_zone_rebalancing is defined as an optional attribute.
I expect the aws_ecs_service configurations without this attribute defined to not generate any changes.
Actual Behavior
terraform plan -refresh=false results in the following change:
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
~ update in-place
# aws_ecs_service.service_test-name will be updated in-place
~ resource "aws_ecs_service" "service_test-name " {
+ availability_zone_rebalancing = "DISABLED"
Most frustratingly, the change is not generated with regular terraform plan and terraform apply as they run with `-refresh=true. Thus the change is never reflected in the state file, either.
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
The configuration is more or less like this (I've edited some fields for NDA reasons)
Get an aws_ecs_service resource applied with 5.76 version
Upgrade to 5.77
tf plan -refresh=true: no changes
tf plan -refresh=false: availability_zone_rebalancing = DISABLED added to the plan output despite being optional
Debug Output
No response
Panic Output
No response
Important Factoids
We have thousands of terraform projects; we use refresh=false during the plan in some of our CI/CD steps to avoid being rate-limited. We cannot simply add this optional attribute to all of our configurations, as we, regrettably, have a large number of projects still using older AWS provider versions.
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Terraform Core Version
1.4.6
AWS Provider Version
5.77
Affected Resource(s)
Expected Behavior
AWS provider 5.77 added support for
availability_zone_rebalancing
in PR 40225. Theavailability_zone_rebalancing
is defined as an optional attribute.I expect the aws_ecs_service configurations without this attribute defined to not generate any changes.
Actual Behavior
terraform plan -refresh=false
results in the following change:Most frustratingly, the change is not generated with regular
terraform plan
andterraform apply
as they run with `-refresh=true. Thus the change is never reflected in the state file, either.Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
The configuration is more or less like this (I've edited some fields for NDA reasons)
Steps to Reproduce
tf plan -refresh=true
: no changestf plan -refresh=false
:availability_zone_rebalancing = DISABLED
added to the plan output despite being optionalDebug Output
No response
Panic Output
No response
Important Factoids
We have thousands of terraform projects; we use
refresh=false
during theplan
in some of our CI/CD steps to avoid being rate-limited. We cannot simply add this optional attribute to all of our configurations, as we, regrettably, have a large number of projects still using older AWS provider versions.References
No response
Would you like to implement a fix?
None