skillfed

aws-cdk.aws-autoscaling

The CDK Construct Library for AWS::AutoScaling

aws-cdk-aws-autoscaling v1.204.0 155.6K downloads/30d#10,806 on PyPI12,868
Permissive license Apache-2.0 Active released

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 on this page — 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

aws-cdk-aws-autoscaling on PyPI

pip

pip install aws-cdk-aws-autoscaling

uv

uv add aws-cdk-aws-autoscaling

poetry

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 the current Python release (~=3.7)
Install friction low — pure-Python wheel
Runtime dependencies 12 — aws-cdk.aws-autoscaling-common, aws-cdk.aws-cloudwatch, aws-cdk.aws-ec2, aws-cdk.aws-elasticloadbalancing, aws-cdk.aws-elasticloadbalancingv2, aws-cdk.aws-iam, aws-cdk.aws-sns, aws-cdk.core, constructs, jsii, publication, typeguard
Maintenance actively maintained — 1,152 days since the last release
Last repo commit
First released
Downloads 155,620/month — #10,806 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: aws_cdk.aws_autoscaling-1.204.0-py3-none-any.whl

Development Status :: 7 - InactiveFramework :: AWS CDKFramework :: AWS CDK :: 1Intended Audience :: DevelopersLicense :: OSI ApprovedOperating System :: OS IndependentProgramming Language :: JavaScriptProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Typing :: Typed

Tags

ec2 auto scaling group cdkaws autoscaling constructsdynamic instance scalingauto scaling policies cloudwatchmixed instances policytarget tracking scalingstep scaling metrics
aws-cdkinfrastructure-as-codeend-of-support

More Build Tools packages

packaging

Provides reusable utilities for Python…

permissive · top 100 on PyPI

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

pip

pip is the standard installer for Python…

permissive · top 100 on PyPI

hatchling

Hatchling is a standards-compliant Python build…

permissive · top 100 on PyPI

grpcio-tools

Generates Python gRPC service stubs and message…

permissive · top 1,000 on PyPI

pre-commit

pre-commit is a framework for installing and…

permissive · top 1,000 on PyPI

aws-cdk.aws-applicationautoscaling

Provides CDK constructs for configuring…

permissive · top 15,000 on PyPI

aws-cdk.aws-autoscaling-common

Provides shared internal implementation details…

permissive · top 15,000 on PyPI

aws-cdk.aws-ecs

Provides AWS CDK constructs for defining and…

permissive · top 15,000 on PyPI

aws-cdk.aws-autoscaling-hooktargets

Provides integration classes for AWS…

permissive · top 15,000 on PyPI

aws-cdk.aws-elasticloadbalancingv2

Provides AWS CDK constructs for defining and…

permissive · top 15,000 on PyPI

aws-cdk.aws-elasticloadbalancing

Provides AWS CDK constructs for configuring and…

permissive · top 15,000 on PyPI

aws-cdk.aws-servicediscovery

Provides AWS CDK constructs for defining and…

permissive · top 15,000 on PyPI

aws-cdk.aws-globalaccelerator

Provides AWS CDK constructs to define and…

permissive · top 15,000 on PyPI

aws-cdk.aws-cloudwatch

Defines CloudWatch metrics, alarms, and…

permissive · top 15,000 on PyPI

aws-cdk.aws-batch

Defines AWS Batch infrastructure (compute…

permissive · top 15,000 on PyPI