aws-autoscaling: Step scaling properties expose unsupported cooldown
property
#29779
Labels
@aws-cdk/aws-autoscaling
Related to Amazon EC2 Auto Scaling
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
Describe the bug
The
StepScalingPolicyProps
interface and relatedStepScalingActionProps
interface expose acooldown
property, which if specified becomes thecooldown
property of aCfnScalingPolicy
here:aws-cdk/packages/aws-cdk-lib/aws-autoscaling/lib/step-scaling-action.ts
Line 77 in a7b4e29
However,
cooldown
is not a supported property for step scaling policies. The documentation for theAWS::AutoScaling::ScalingPolicy
resource says:Specifying this property has no effect and can cause CloudFormation deployment errors in some regions (such as ap-southeast-4).
Expected Behavior
Since this property has no effect and can cause deployment errors, it should not be possible to specify for step scaling policies and should be deprecated.
Current Behavior
The property can be specified and results in an
AWS::AutoScaling::ScalingPolicy
withPolicyType
set toStepScaling
and theCooldown
property present. This is ineffectual or can cause the following error on deployment, depending on the region:Reproduction Steps
The following application reproduces the deployment error when deployed to ap-southeast-4.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.136.1
Framework Version
No response
Node.js Version
v18.0.0
OS
macOS
Language
TypeScript
Language Version
5.4.3
Other information
(Amazon ticket D120666119 has some more detail.)
The text was updated successfully, but these errors were encountered: