Skip to content

AutoScaling: Validate use of Cooldown #32667

Open
@ryanwilliams83

Description

@ryanwilliams83

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-autoscalingRelated to Amazon EC2 Auto ScalingdocumentationThis is a problem with documentation.effort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p3

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions