ecs_service capacity_provider_strategy forces replacement even though CLI doesn not #20059
Labels
bug
Addresses a defect in current functionality.
service/ecs
Issues and PRs that pertain to the ecs service.
Community Note
Terraform CLI and Terraform AWS Provider Version
terraform 0.12.31
provider 3.47.0
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.
Expected Behavior
The ecs service capacity provider strategy is updated in place on the existing service and a new deployment is forced.
Actual Behavior
Terraform plan shows the need to force replacement.
Important Factoids
When I run the aws ecs update-service call, I can update the capacity provider strategy in place without any issues.
What is odd is that the update method of the provider seems to be coded to handle the possibility of a change in the capacity provider strategy (https://github.com/hashicorp/terraform-provider-aws/blob/main/aws/resource_aws_ecs_service.go#L1113), but the schema does not (https://github.com/hashicorp/terraform-provider-aws/blob/main/aws/resource_aws_ecs_service.go#L42), based on my admittedly limited understanding of providers.
The text was updated successfully, but these errors were encountered: