ECS capacity provider resource forces new resource when changing target_capacity
#19542
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/ecs
Issues and PRs that pertain to the ecs service.
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
The AWS provider should update in place the
target_capacity
for an existing capacity provider.Actual Behavior
The provider forces a new resource and attempts to delete and re-create the existing capacity provider. When applying this change, the AWS provider will timeout and fail if you are running tasks on any instance managed by the capacity provider. The error it returns after failing and timing out is:
Below is an example plan output:
Steps to Reproduce
target_capacity
.target_capacity
.Important Factoids
It looks like the go AWS SDK has already implemented UpdateCapacityProvider as of v1.35.34 so it should be possible to include in the AWS provider for terraform already.
The text was updated successfully, but these errors were encountered: