aws_ecs: Previously turned on managed scaling cannot be disabled #29088
Labels
@aws-cdk/aws-ecs
Related to Amazon Elastic Container
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
Describe the bug
If you create a ECS cluster with
AsgCapacityProvider
with managed scaling enabled, you are not able to disable it any time later.Once the
EneableManagedScaling
is set to false, the outputted CloudFormation template does not contain the definition forManagedScaling
property anymore, but this is not causing the CloudFormation to turn off the managed scaling.Expected Behavior
Setting
AsgCapacityProvider.EnableManagedScaling
tofalse
should turned off the managing scaling.Current Behavior
When
AsgCapacityProvider.EnableManagedScaling
is set tofalse
for the capacity provider, CloudFormation template does not containManagedScaling
property forAWS::ECS::CapacityProvider
anymore. But this missing property doesn't cause the managed scaling to be turned off.Reproduction Steps
AsgCapacityProvider
propertyEnableManagedScaling
to false.Possible Solution
The
ManagedScaling
property should be probably still present but withStatus
set toDISABLED
.Additional Information/Context
Problem occurs only when updating existing cluster. If you create new cluster with scaling disabled, it is created in correct way.
CDK CLI Version
2.126.0
Framework Version
2.124.0
Node.js Version
20.10.0
OS
Fedora 39
Language
.NET
Language Version
8
Other information
No response
The text was updated successfully, but these errors were encountered: