-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-autoscaling: Step scaling properties expose unsupported cooldown
property
#29779
aws-autoscaling: Step scaling properties expose unsupported cooldown
property
#29779
Comments
Hi @lucajone thanks for reporting this. I implemented this in us-east-1 and it succeeded. I wonder though it would have any impact. You are absolutely right in saying exposing this property as multiple interfaces won't serve the purpose as its exclusively for 'SimpleScaling` policy type. Marking it as appropriate. |
…30150) ### Issue # (if applicable) Closes #29779 ### Reason for this change `cooldown` cannot be set on step scaling and can cause deployment failure in certain regions. ### Description of changes Deprecate the property and ignore the value. Give a warning. ### Description of how you validated changes Unit test added. ### Checklist - [ ] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one. |
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: