aws-ecs: Updating capacity provider strategies on EC2 service causes replacement #29826
Labels
@aws-cdk/aws-ecs
Related to Amazon Elastic Container
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
Describe the bug
When attempting to update a service which has no capacity provider strategy (i.e. defaulted to EC2 launch type) to have a capacity provider strategy, CDK reports that it will replace the service rather than update-in-place.
This is problematic for two reasons:
Expected Behavior
I expect the capacity provider strategy would be updated in-place without requiring a service replacement.
Current Behavior
CDK/Cloudformation attempts to recreate the service (with the same name), and fails.
The output from
cdk diff
Fails to deploy:
Reproduction Steps
Possible Solution
No response
Additional Information/Context
I'm currently using this as a workaround:
CDK CLI Version
2.44.0 (build bf32cb1)
Framework Version
No response
Node.js Version
v20.11.1
OS
macOS Sonoma 14.2.1
Language
TypeScript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: