AWS CDK vs AWS CloudFormation
No clear leader: AWS CDK (65.0) and AWS CloudFormation (60.3) are within the 5-point margin; treat as a tie. The attribute-by-attribute breakdown below, with a source and date on every value, is the honest way to compare them.
Capabilities
Feature-by-feature on the axes that matter for infrastructure as code tools. “-” means undocumented, not absent.
What each one is
The product in its own terms, so the numbers below have context.
AWS CDK
A development framework that lets you define AWS cloud resources and infrastructure using standard programming languages like TypeScript, Python, Java, .NET, and Go. CDK compiles your code into CloudFormation templates for deployment.
AWS CloudFormation
A managed service for provisioning and managing AWS and third-party cloud resources through declarative templates (JSON/YAML) or programmatic languages. Automates infrastructure deployment across regions and accounts, detects configuration drift, and provides automatic rollback on errors.
Pricing
List pricing as published by each vendor, with the date we read it. Always verify at the source before you buy.
AWS CloudFormation
Usage-based: $0.0009/handler operation + $0.00008/sec overage. 1,000 free operations/month. Data transfer at AWS rates.
- Third-party Resources & Custom Hooks$0.0009/handler operation after 1,000 free ops/month
- Unlimited AWS::* and Alexa::* resource operations (no handler charges)
- Third-party resource provisioning
- Custom hook support
- Handler operation billing after free tier
- Duration overage billing
Platform & deployment
Where each product runs and how it can be hosted. A dash means undocumented, not unsupported.
Integrations
What each product connects to. Counts come from the vendor's own integration directory where one exists.
AWS CDK
- AWS CloudFormation
- AWS Lambda
- AWS SNS
- AWS Step Functions
- AWS EC2
AWS CloudFormation
- MongoDB
- Datadog
- Atlassian Opsgenie
- JFrog
- Trend Micro
- Splunk
- Aqua Security
- FireEye
- Sysdig
- Snyk
- Check Point
- Spot by NetApp
- Gremlin
- Stackery
- Iridium
- AWS CDK
- AWS SAM (Serverless Application Model)
- Visual Studio
- Kiro
- AWS CloudFormation Registry
- AWS Partner Network (APN)
Comparison generated from independently-sourced facts. Every value links to its source and retrieval date. See the method.