aws-cdk.aws-ecs
The CDK Construct Library for AWS::ECS
Decision gist · record as of 2026-08-14
No—do not install for new projects. This is AWS CDK v1, which reached end-of-support on 2023-06-01 and is no longer being updated. AWS explicitly recommends migrating to AWS CDK v2. Install only if you are maintaining legacy v1 code that cannot yet be upgraded.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires AWS CDK v1 environment and Python 3.7 or later; AWS CDK v1 is end-of-support as of 2023-06-01.
- 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 · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2023-06-19 (1152 days) · last repo commit 2026-08-14 · 12,868 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 147,076 downloads/mo, #11,080 on PyPI
Alternatives
Verify before relying
pip install aws-cdk.aws-ecs
from aws_cdk import aws_ecs as ecs
from aws_cdk import aws_ec2 as ec2
cluster = ecs.Cluster(self, "Cluster", vpc=vpc)
cluster.add_capacity("DefaultAutoScalingGroupCapacity",
instance_type=ec2.InstanceType("t2.xlarge"),
desired_capacity=3
)- Whether existing v1 code will continue to function without breaking changes in future Python or AWS SDK updates.
- Support timeline and security patch policy for v1 after end-of-support date.
What it is and what it does
This package is the AWS CDK v1 construct library for Amazon ECS, providing high-level Python abstractions to define container clusters, task definitions, and services. It supports three launch modes: EC2 instances under your control, AWS Fargate for fully managed tasks, and ECS Anywhere for self-managed infrastructure. You use it to declare ECS infrastructure as code within a CDK application, specifying cluster capacity, container images, memory and CPU limits, networking modes, and load balancer attachments.
The library handles the underlying CloudFormation generation and integrates with other AWS CDK modules (EC2, IAM, CloudWatch, load balancers, service discovery, and more) to build complete container deployments. However, AWS CDK v1 reached end-of-support on 2023-06-01 and is no longer receiving updates—the project recommends migrating to AWS CDK v2 for new work.
Use it for
- Define an ECS cluster with EC2 capacity and deploy containerized services using infrastructure-as-code.
- Create Fargate task definitions and services for serverless container workloads without managing EC2 instances.
- Set up ECS Anywhere tasks to run containers on self-managed infrastructure while using AWS ECS orchestration.
- Integrate container deployments with load balancers, auto-scaling, and CloudWatch monitoring in a single CDK stack.
- Import and reference existing ECS clusters by ARN to add new services or update capacity programmatically.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No—do not install for new projects.
This is AWS CDK v1, which reached end-of-support on 2023-06-01 and is no longer being updated. AWS explicitly recommends migrating to AWS CDK v2. Install only if you are maintaining legacy v1 code that cannot yet be upgraded.
Install
aws-cdk-aws-ecs on PyPI
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.
Requires AWS CDK v1 environment and Python 3.7 or later; AWS CDK v1 is end-of-support as of 2023-06-01.
License in practice
Apache-2.0 is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install aws-cdk.aws-ecs
from aws_cdk import aws_ecs as ecs
from aws_cdk import aws_ec2 as ec2
cluster = ecs.Cluster(self, "Cluster", vpc=vpc)
cluster.add_capacity("DefaultAutoScalingGroupCapacity",
instance_type=ec2.InstanceType("t2.xlarge"),
desired_capacity=3
)
Verify before relying
- Whether existing v1 code will continue to function without breaking changes in future Python or AWS SDK updates.
- Support timeline and security patch policy for v1 after end-of-support date.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release ~=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 29 packagesaws-cdk.aws-applicationautoscalingaws-cdk.aws-autoscaling-hooktargetsaws-cdk.aws-autoscalingaws-cdk.aws-certificatemanageraws-cdk.aws-cloudwatchaws-cdk.aws-ec2aws-cdk.aws-ecr-assetsaws-cdk.aws-ecraws-cdk.aws-elasticloadbalancingaws-cdk.aws-elasticloadbalancingv2aws-cdk.aws-iamaws-cdk.aws-kmsaws-cdk.aws-lambdaaws-cdk.aws-logsaws-cdk.aws-route53-targetsaws-cdk.aws-route53aws-cdk.aws-s3-assetsaws-cdk.aws-s3aws-cdk.aws-secretsmanageraws-cdk.aws-servicediscoveryaws-cdk.aws-snsaws-cdk.aws-sqsaws-cdk.aws-ssmaws-cdk.coreaws-cdk.cx-apiconstructsjsiipublicationtypeguard |
| Maintenance | Actively maintained 1,152 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 147,076 / month, #11,080 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | 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 |
Evidence: aws_cdk.aws_ecs-1.204.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “ECS cluster infrastructure as code”
- aws-cdk.aws-ecsProvides AWS CDK constructs for defining and managing Amazon ECS…
- pulumi-awsxProvides high-level component wrappers around AWS resources to…
- ecs-deployecs-deploy is a CLI tool that simplifies Amazon ECS deployments,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Build Tools packages
Provides reusable utilities for Python packaging interoperability, including version handling, specifiers, markers, requirements, tags, and metadata parsing according to standards like PEP 440 and PEP 425.
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
pip is the standard installer for Python packages, enabling you to download and install packages from the Python Package Index and other indexes into your Python environment.
Hatchling is a standards-compliant Python build backend that handles packaging, metadata, and distribution of Python projects when configured in a project's pyproject.toml file.
Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.
pre-commit is a framework for installing and running git hooks written in any language before commits are made, automating code quality and validation checks across multi-language projects.
Install it if your team needs consistent, automated validation at commit time.
See also aws-cdk.aws-ec2 · aws-cdk.aws-events · ecs-deploy · aws-cdk.aws-servicediscovery · aws-cdk.aws-batch · aws-cdk.aws-fsx · aws-cdk.aws-efs · aws-cdk.aws-globalaccelerator · aws-cdk.aws-autoscaling · aws-cdk.aws-redshift-alpha