Skip to content

Commit

Permalink
r/aws_ecs_service: availability_zone_rebalancing attribute shouldn't …
Browse files Browse the repository at this point in the history
…have a default

An attributed availability_zone_rebalancing that was introduced in PR #40225
is defined as an optional, but also has a default value. For configurations
where this flag is not defined, plan with `refresh=false` results in
a change that would add this attribute to the state - which is not what
"optional" should mean.

This is to address #40349
  • Loading branch information
nina-nee committed Dec 11, 2024
1 parent c672825 commit dedcb5e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/service/ecs/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,6 @@ func resourceService() *schema.Resource {
"availability_zone_rebalancing": {
Type: schema.TypeString,
Optional: true,
Default: awstypes.AvailabilityZoneRebalancingDisabled,
ValidateDiagFunc: enum.Validate[awstypes.AvailabilityZoneRebalancing](),
},
names.AttrCapacityProviderStrategy: {
Expand Down

0 comments on commit dedcb5e

Please sign in to comment.