--- id: aws-cdk-aws-autoscaling version: "1.204.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # aws-cdk.aws-autoscaling — The CDK Construct Library for AWS::AutoScaling License: permissive · Maintenance: active · Downloads: 155.6K/mo ## What it is and what it does This package is part of AWS CDK v1 and provides Python constructs for defining EC2 Auto Scaling Groups—clusters of instances that automatically grow or shrink in response to demand. It lets you specify instance types, machine images (AMIs), capacity bounds, and scaling policies. You can scale based on CloudWatch metrics (step scaling), maintain a target metric value (target tracking), or follow a schedule. The package integrates with EC2 security groups, load balancers, SNS notifications, and IAM roles to build complete auto-scaling infrastructure as code. Because AWS CDK v1 reached End-of-Support on 2023-06-01, this package is no longer maintained or updated. New projects should use AWS CDK v2 instead. Existing v1 users will need to migrate to continue receiving updates and support. Use it for: - Define auto-scaling EC2 fleets that grow when CPU usage exceeds a threshold and shrink when it drops - Launch mixed Spot and on-demand instances with different instance types using a MixedInstancesPolicy - Scale based on custom CloudWatch metrics emitted by your application (e.g., worker pool utilization) - Attach auto-scaling groups to load balancers and configure target tracking to maintain a desired metric value - Schedule capacity changes around expected traffic patterns (scale out mornings, scale in evenings) ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides CDK constructs for defining and managing EC2 Auto Scaling Groups, including scaling policies, mixed instance types, and integration with load balancers and CloudWatch metrics. No. This is AWS CDK v1, which reached End-of-Support on 2023-06-01 and is no longer maintained. New projects should use AWS CDK v2 instead. Existing v1 users should plan migration to v2 to continue receiving updates and support. ## Install pip install aws-cdk-aws-autoscaling uv add aws-cdk-aws-autoscaling poetry add aws-cdk-aws-autoscaling ## Installing aws-cdk.aws-autoscaling Before you install: Low install friction with a pure-Python wheel. However, this is AWS CDK v1, which reached End-of-Support on 2023-06-01 and is no longer being updated; users should migrate to AWS CDK v2 instead. License in practice: Licensed under Apache-2.0 (permissive), allowing use in most commercial and open-source projects without significant restrictions. Quickstart: pip install aws-cdk.aws-autoscaling from aws_cdk import aws_autoscaling as autoscaling from aws_cdk import aws_ec2 as ec2 auto_scaling_group = autoscaling.AutoScalingGroup( self, "ASG", vpc=vpc, instance_type=ec2.InstanceType.of(ec2.InstanceClass.BURSTABLE2, ec2.InstanceSize.MICRO), machine_image=ec2.AmazonLinuxImage(), min_capacity=5, max_capacity=100 ) Requires AWS CDK v1 core library and EC2 construct library; v1 is no longer maintained as of 2023-06-01. Verify before relying: - Whether v1-to-v2 migration tooling or guides are available to ease the transition away from this package - Whether existing v1 projects can coexist with v2 constructs in the same codebase ## Package facts - License: Apache-2.0 (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 155.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags ec2 auto scaling group cdk, aws autoscaling constructs, dynamic instance scaling, auto scaling policies cloudwatch, mixed instances policy, target tracking scaling, step scaling metrics, aws-cdk, infrastructure-as-code, end-of-support [View on SkillFed](https://skillfed.io/packages/aws-cdk-aws-autoscaling) · [View on PyPI](https://pypi.org/project/aws-cdk-aws-autoscaling/)