13 CDK constructs available in aws-cdk-lib/aws-autoscaling
import * as autoscaling from 'aws-cdk-lib/aws-autoscaling';Higher-level abstractions with sensible defaults and convenience methods.
A Fleet represents a managed set of EC2 instances. The Fleet models a number of AutoScalingGroups, a launch configuration, a security group and an instance role. It allows adding arbitrary commands to the startup scripts of the instances in the fleet. The ASG spans the availability zones specified by vpcSubnets, falling back to the Vpc default strategy if not specified.
Define a life cycle hook.
Define a scheduled scaling action.
Define a step scaling action. This kind of scaling policy adjusts the target capacity in configurable steps. The size of the step is configurable based on the metric's distance to its alarm threshold. This Action must be used as the target of a CloudWatch alarm to take effect.
Define a acaling strategy which scales depending on absolute values of some metric. You can specify the scaling behavior for various values of the metric. Implemented using one or more CloudWatch alarms and Step Scaling Policies.
Define a warm pool.
Direct CloudFormation resource mappings. One-to-one with CloudFormation resource types.
AWS::AutoScaling::AutoScalingGroupAWS::AutoScaling::LaunchConfigurationAWS::AutoScaling::LifecycleHookAWS::AutoScaling::ScalingPolicyAWS::AutoScaling::ScheduledActionAWS::AutoScaling::WarmPoolOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-cdk-lib/aws-autoscaling