# AWS CDK: 8.2 out of 10

A strong pick. 2nd of 8 in [Infrastructure as code](https://elestia.ai/opensource/infra/index.md).

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.

## Scores

- **Overall: 8.2** (likely 7.2 to 8.9)
  - Claude Opus 5.5 (8.0): 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): 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 many: 5.1** (likely 4.1 to 6.2)
  - Claude Opus 5.5 (5.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): 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 lot: 8.3** (likely 7.2 to 9.3)
  - Claude Opus 5.5 (8.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): 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 time: 8.8** (likely 7.7 to 9.5)
  - Claude Opus 5.5 (9.0): 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): 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 widely: 6.9** (likely 5.7 to 7.7)
  - Claude Opus 5.5 (7.5): 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.
  - GPT-6.2 Sol (6.2): 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.
- **Vouched for: 8.0** (likely 7.0 to 8.8)
  - Claude Opus 5.5 (8.0): 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): 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.
- **Safe: 6.9** (likely 5.8 to 8.0)
  - Claude Opus 5.5 (7.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): 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

- Downloads, 4 weeks: 28M
- In a year: ×3.2
- GitHub stars: 13k
- Commits, 12 months: 1.7k
- Last npm release: Nov 2026
- Advisories, 24 months: 7
- Licence: Apache-2.0
- GitHub: https://github.com/aws/aws-cdk
- npm: https://www.npmjs.com/package/aws-cdk-lib

It builds resources on AWS only.

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
