aws-cdk-lib
Version 2 of the AWS Cloud Development Kit library
Decision gist · record as of 2026-08-14
Yes. aws-cdk-lib is production-stable (Development Status 5), actively maintained with recent updates, has no known vulnerabilities, and low installation friction. It is the standard library for Python-based AWS CDK v2 projects. Install it if you are building infrastructure-as-code applications on AWS and prefer Python over CloudFormation templates.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; AWS credentials and bootstrap configuration needed for actual deployment.
- Low friction installation with a pure-Python wheel.
- Actively maintained with a recent release (1 day old) and 12868 repository stars.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions.
last release 2026-08-13 (1 days) · last repo commit 2026-08-14 · 12,868 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 7,577,580 downloads/mo, #1,721 on PyPI
Alternatives
Verify before relying
pip install aws-cdk-lib constructs
from aws_cdk import Stack, App
from aws_cdk import aws_s3 as s3
app = App()
stack = Stack(app, "MyStack")
s3.Bucket(stack, "MyBucket")- Whether the package handles all AWS service APIs or if some require separate modules.
- Performance characteristics when synthesizing large stacks with hundreds of resources.
What it is and what it does
aws-cdk-lib is the core construct library for AWS CDK v2, a framework for defining cloud infrastructure in Python code rather than CloudFormation templates directly. It provides high-level abstractions (constructs) that map to AWS resources and services, letting you organize deployments into Stacks (physical CloudFormation units) and Stages (logical application instances). The library handles synthesis—converting your Python definitions into CloudFormation JSON—and manages asset handling, role configuration, and deployment orchestration through pluggable synthesizers.
You write Python classes that inherit from Stack, instantiate constructs for the AWS resources you need, and then synthesize and deploy. It supports both classic and barrel imports for different coding styles. The package depends on constructs (the base abstraction layer), jsii (for language bindings), and AWS CDK asset packages for CLI and Node.js tooling integration.
Use it for
- Define multi-environment deployments by instantiating the same Stack class with different configurations for dev, staging, and production.
- Build reusable infrastructure libraries as construct subclasses that teams can share across projects.
- Manage complex infrastructure organized across multiple stacks without writing raw CloudFormation.
- Automate infrastructure changes through version control and CI/CD pipelines using Python code review workflows.
- Separate stateful and stateless resources into different stacks for independent lifecycle management.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
aws-cdk-lib is production-stable (Development Status 5), actively maintained with recent updates, has no known vulnerabilities, and low installation friction. It is the standard library for Python-based AWS CDK v2 projects. Install it if you are building infrastructure-as-code applications on AWS and prefer Python over CloudFormation templates.
Install
aws-cdk-lib on PyPI
Before you install
Low friction installation with a pure-Python wheel. Actively maintained with a recent release (1 day old) and 12868 repository stars. Requires Python 3.10 or later.
Requires Python 3.10 or later; AWS credentials and bootstrap configuration needed for actual deployment.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
pip install aws-cdk-lib constructs
from aws_cdk import Stack, App
from aws_cdk import aws_s3 as s3
app = App()
stack = Stack(app, "MyStack")
s3.Bucket(stack, "MyBucket")
Verify before relying
- Whether the package handles all AWS service APIs or if some require separate modules.
- Performance characteristics when synthesizing large stacks with hundreds of resources.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 6 packagesaws-cdk.asset-awscli-v1aws-cdk.asset-node-proxy-agent-v6aws-cdk.cloud-assembly-schemaconstructsjsiipublication |
| Maintenance | Actively maintained 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 7,577,580 / month, #1,721 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI ApprovedOperating System :: OS IndependentProgramming Language :: JavaScriptProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Typing :: Typed |
Evidence: aws_cdk_lib-2.265.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 › “define aws resources programmatically”
- aws-cdk-libProvides Python APIs to define and deploy AWS cloud infrastructure as…
- aws-cdk.aws-s3Defines AWS S3 buckets and related resources as code using the AWS…
- aws-cdk.aws-cloudformationDefines AWS CloudFormation resources programmatically in Python as…
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-s3 · aws-cdk.core · aws-cdk.aws-cloudformation · cdk8s · aws-cdk.aws-apigateway · cdk-aurora-globaldatabase · sceptre · aws-cdk.custom-resources · aws-cdk.assets · constructs