Description
Describe the feature
Cooldown
only applies to simple scaling policy.
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-autoscaling-scalingpolicy.html#cfn-autoscaling-scalingpolicy-cooldown
Please consider enhancing CDK to trap for the following configuration when executed with the --ci
switch.
To inform users that the cooldown will not have any effect.
asg.ScaleOnCpuUtilization('ALowCpuLoad', {
cooldown = cdk.Duration.minutes(666), // Has no effect when the policyType is TargetTrackingScaling
estimatedInstanceWarmup = cdk.Duration.minutes(10),
targetUtilizationPercent: 45
});
Use Case
I was mislead by the CDK intrinsic documentation.
Cooldown: Period after a scaling completes before another scaling activity can start.
Default: The default cooldown configured on the AutoScalingGroup.
Proposed Solution
No response
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
CDK version used
2.165.0
Environment details (OS name and version, etc.)
Windows, C#, Constructs 10.4.2