Elestia Open Source Ratings
8.2

AWS CDK

A strong pick. 2nd of 8 infrastructure as code.

AWS CDK is AWS's own framework for defining AWS infrastructure in TypeScript. It compiles to CloudFormation. For teams that deploy only to AWS, it is a mature, well-funded and widely used choice. Its main costs are AWS lock-in and CloudFormation's slow deploys and rollbacks.

Best for: Teams that build only on AWS and want typed, high-level constructs backed by AWS itself.

WebsiteGitHubnpm

Scores

Overall8.2

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 8.0, likely 7.0 to 8.5

For AWS-only work, CDK is the most complete and safest long-term bet in TypeScript, because AWS funds it, it ships often and it has the largest dependent base. It is held back from 9 by AWS lock-in, CloudFormation's slow deploys and limits, and growth below the median while Pulumi and SST gain share. Pulumi is the better pick for multi-cloud work, and SST gives a nicer loop for serverless full-stack apps.

GPT-6.2 Sol: 8.4, likely 7.3 to 9.3

AWS CDK is a strong choice for new AWS-only work because its typed constructs save setup work and AWS keeps the library current. Pulumi is the stronger fit when the same TypeScript project needs first-class support for several providers. The recommendation depends on how well CloudFormation's stack limits and deployment behavior fit the workload, and relative download growth has slowed.

Needed by many5.1

How many developers need a tool for this job?

Claude Opus 5.5: 5.0, likely 4.0 to 6.0

Infrastructure as code is a common need for backend and full-stack teams, but not for most JavaScript developers. CDK serves only AWS, which is still the largest cloud, so it reaches a big but bounded share of the category.

GPT-6.2 Sol: 5.2, likely 4.1 to 6.4

AWS CDK covers a wide range of AWS infrastructure, from serverless applications to shared networking. It fits teams that own AWS provisioning, while Pulumi also covers other clouds and SaaS providers. The available survey describes AWS practitioners and leaves the share of all JavaScript and TypeScript developers uncertain.

Helps a lot8.3

How well does it do the job for those who need it?

Claude Opus 5.5: 8.0, likely 7.0 to 9.0

Its L2 constructs, typed APIs and grant helpers make AWS infrastructure concise and safe, and its service coverage is the widest of any AWS tool. The CloudFormation backend brings slow deploys, stuck rollbacks and per-stack resource limits. Express mode, added in 2026, cuts deploy time, but only AWS has measured that so far. SST offers a smoother developer loop for serverless apps, but CDK is more complete.

GPT-6.2 Sol: 8.5, likely 7.4 to 9.5

Version 2.278.0 offers typed constructs, documented CloudFormation bindings, and assertions for the generated templates. Users report slow rollbacks and disruptive stack splits, and newer AWS features can require lower-level code. In SWE-InfraBench, the best tested model passed 34% of CDK editing tasks. Agent performance today and deployment speed across workloads remain uncertain.

Holds up over time8.8

Will it still be a good choice in two years?

Claude Opus 5.5: 9.0, likely 8.0 to 9.5

AWS employs the core team. The repository had 1,705 commits and 62 releases in the last year, and the latest release came out the day before this review. Version 2 has been stable since 2021 and uses feature flags to avoid breaking changes. The backlog of 2,441 open issues is large, and the CLI has split off into its own release line, but the project shows no sign of slowing.

GPT-6.2 Sol: 8.5, likely 7.4 to 9.5

AWS maintains the project and shipped 62 releases and 1,705 commits in the last year, including continued work on reusable constructs. A recent CLI bug moved from report to fix in about eight weeks, while the library still has a large backlog. Generated CloudFormation types can break within v2, and the age of the published roadmap limits visibility into future priorities.

Used widely6.9

How many use it, and is that growing?

Claude Opus 5.5: 7.5, likely 6.5 to 8.0

It has about 27.8M downloads in 4 weeks and 4,665 dependent repositories, the most of any peer. Downloads grew 3.2x year on year, which is below the 4.1 median and below Pulumi (6x) and SST (7.5x), so it is losing relative share even as it grows. Much of the download count comes from CI installs.

  • npm downloadsLast4Weeks: 27.8M, against 8.59M a year earlier (ratio 3.2)
  • medianDownloadsRatio: Median ratio is 4.1, so CDK grows slower than the median
  • dependents.repos: 4665 repos, the highest among peers (Pulumi 2143)
  • github stars: About 13k stars, roughly half of Pulumi's or SST's

GPT-6.2 Sol: 6.2, likely 4.9 to 7.4

AWS CDK leads the bundle with 4,665 indexed dependent repositories and drew 21 Bluesky posts. Four-week downloads grew 3.24× to 27.8 million, below the 4.1× catalog median and behind Pulumi and SST. AWS survey usage rose from 58% to 63%, while interest among nonusers fell from 55% to 44%. CI installs, indirect dependencies, and partial repository indexing leave the number of new projects choosing it uncertain.

  • dependents: 4,665 indexed repositories and 2,095 npm packages.
  • npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio: 27.8 million versus 8.6 million downloads, or 3.24× against 4.1×.
  • peers: Pulumi grew 6.00× and SST 7.47×. Both have fewer indexed dependent repositories.
  • github stars, bluesky posts: 12,989 stars and 21 Bluesky posts, second in the bundle for posts.
  • answersforaws.com/2025/answers4aws-results-2025.json: 58.2% usage and 55.3% interest.
  • answersforaws.com/2026/answers4aws-results-2026.json: 62.8% usage and 43.9% interest.
Vouched for8.0

Who stands behind it being good?

Claude Opus 5.5: 8.0, likely 7.0 to 8.5

AWS backs it as its recommended IaC tool, and many companies run it in production. Large construct ecosystems such as Projen and community constructs build on it. Independent write-ups treat it as the standard AWS-native choice while noting its CloudFormation pain points. Much of the current material comes from AWS or from competing vendors, so truly independent evidence is thinner.

GPT-6.2 Sol: 8.0, likely 6.9 to 9.0

Thomson Reuters uses CDK to standardize and enforce policies across AWS accounts, and Extend reports running dozens of serverless services with it. In the 2026 Answers for AWS survey, 72% of CDK users said they would use it again. The survey was self-selected, and SST's migration off CDK shows where the production case is weaker.

Safe6.9

How safe is it to depend on?

Claude Opus 5.5: 7.0, likely 6.0 to 8.0

The licence is Apache-2.0, releases are signed, code review is strong, and the package has 15 dependencies. Seven advisories were published in 24 months, including two high-severity command injections in NodejsFunction bundling in 2026. AWS fixed and disclosed both through security bulletins. The Scorecard is 5.9, with zeros on Dangerous-Workflow and Token-Permissions.

GPT-6.2 Sol: 6.7, likely 5.5 to 7.9

Both high-severity 2026 bundling advisories had fixes available before public disclosure, and 2.278.0 also includes the October asset-bundling fix. The library has 15 direct dependencies and a permissive Apache-2.0 license. Scorecard gives code review full marks and flags workflow safety and token permissions, yielding 5.9 overall. GitHub shows automated releases and a verified release commit, while the number of authorized npm publishers remains unverified.

Good

  • Its high-level constructs cover almost every AWS service, with grants, sensible defaults and the Mixins API (stable since 2026).
  • AWS funds and staffs it, ships about one release a week, and community contributors are very active.
  • It has more dependent repositories than any peer, plus a large ecosystem of construct libraries and examples that AI agents know well.
  • It runs on managed CloudFormation, so you need no separate state backend or paid state service.

Bad

  • It works only with AWS, so a multi-cloud team needs a second tool such as Pulumi.
  • Deploys are slow and rollbacks are painful because everything goes through CloudFormation, although the new --express mode helps.
  • It hits CloudFormation limits, such as 500 resources per stack, and complex cross-stack references are hard to change later.
  • In 2026 it had two high-severity command-injection advisories in NodejsFunction bundling, and its Scorecard is middling at 5.9.

The numbers

npm downloads, 4 weeks
28M ×3.2 in a year
GitHub stars
13k
Commits, 12 months
1.7k
npm version
2.278.0 Nov 2026
Versions, 12 months
62
Advisories, 24 months
7 of 8 ever
OpenSSF Scorecard
5.9 out of 10, Nov 2026
Licence
Apache-2.0

It builds resources on AWS only.

Read on 21 November 2026 from GitHub (aws/aws-cdk), npm (aws-cdk-lib), OSV and the OpenSSF Scorecard.

Infrastructure as code

  1. 8.4Pulumi
  2. 8.2AWS CDK
  3. 6.1cdk8s
  4. 6.0Alchemy
  5. 5.6Wrangler
  6. 5.5SST
  7. 4.4Architect
  8. 1.4CDK for Terraform
Compare all 8 on six scores