AWS CDK models cloud resources as code and provisions them through AWS CloudFormation. Developers compose reusable constructs into stacks and manage deployments with the CDK CLI.
Overview
The AWS Cloud Development Kit is a framework for defining cloud infrastructure in code and provisioning it through AWS CloudFormation. It offers object-oriented abstractions in several supported programming languages so teams can describe AWS resources imperatively instead of hand-authoring large templates.
Developers define reusable cloud components called constructs, group them into stacks to form a CDK app, and use the AWS CDK CLI to synthesize CloudFormation templates, deploy stacks to AWS accounts, and diff local changes against what is already deployed. The AWS Construct Library provides modules for individual services with APIs that encode common integration patterns and usage details.
Construct Hub supports discovering community CDK constructs for building microservices programmatically. CDK Blocks packages infrastructure for app capabilities together with application code and local implementations, including blocks for databases, authentication, storage, realtime workloads, background jobs, and AI agents.
Typical workflows install the CLI from npm, initialize a project, and run deploy, synth, or diff commands. CDK Aspects can enforce organizational standards across generated infrastructure, and modules move from experimental to stable stability levels with semver expectations after stabilization.
Key features
- CloudFormation provisioning from code
- Reusable infrastructure constructs
- CDK CLI synth deploy and diff
- AWS Construct Library per service
- Construct Hub community constructs
- CDK Blocks for app capabilities
- Multi-language CDK support
- Aspects for policy enforcement
Use cases
- Infrastructure as code on AWS
- Reusable internal construct libraries
- CI/CD driven stack deployment
- Microservices from shared constructs
- Local build then deploy to your account