From dedcb5efab98923c9b973fb86f19b5cba5c55724 Mon Sep 17 00:00:00 2001 From: Nina Kalinina Date: Wed, 11 Dec 2024 13:50:02 +0000 Subject: [PATCH] r/aws_ecs_service: availability_zone_rebalancing attribute shouldn't have a default An attributed availability_zone_rebalancing that was introduced in PR https://github.com/hashicorp/terraform-provider-aws/pull/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 https://github.com/hashicorp/terraform-provider-aws/issues/40349 --- internal/service/ecs/service.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/service/ecs/service.go b/internal/service/ecs/service.go index d2475c357dc..c81bb407a08 100644 --- a/internal/service/ecs/service.go +++ b/internal/service/ecs/service.go @@ -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: {