# CDK for Terraform: 1.4 out of 10

Do not start with it. 8th of 8 in [Infrastructure as code](https://elestia.ai/opensource/infra/index.md).

CDK for Terraform (cdktf) let you write Terraform infrastructure in TypeScript. HashiCorp deprecated it and archived the repository in December 2025, and it has had no release since v0.21.0 in June 2025. Do not start a new project with it. Use Pulumi, AWS CDK or SST instead, or the community fork CDK Terrain if you need Terraform and constructs together.

**Best for:** Nobody starting new work; only teams that already run it and are planning a migration.

## Scores

- **Overall: 1.4** (likely 0.7 to 2.3)
  - Claude Opus 5.5 (1.0): The vendor deprecated and archived it, and it will get no fixes, so it falls in the 'do not start with it' band. Maintained peers do the same job: Pulumi for multi-cloud TypeScript, AWS CDK for AWS, and the CDK Terrain fork for teams that must keep Terraform constructs. The range is narrow because the archive status is direct and certain.
  - GPT-6.2 Sol (1.7): Typed Terraform constructs still work in existing stacks, and HCL export gives those teams a way to migrate. For a new TypeScript project, Pulumi offers broad cloud coverage and active maintenance, while CDKTF has reached end of support and is losing ground in relative npm usage. The confirmed sunset keeps the range narrow.
- **Needed by many: 4.3** (likely 3.2 to 5.5)
  - Claude Opus 5.5 (4.0): Writing infrastructure in TypeScript is a real but limited need, and cdktf serves only the subset of that need that wants to run on Terraform. Most JS developers deploy through platform tools or vendor CDKs rather than Terraform constructs.
  - GPT-6.2 Sol (4.6): CDKTF serves teams that manage cloud infrastructure and want to write it in TypeScript while keeping Terraform. Its provider coverage spans multiple clouds, but many JavaScript and TypeScript developers either delegate deployment or use another workflow. The Stack Overflow survey measures broader Terraform use, so the size of this audience is approximate.
- **Helps a lot: 4.7** (likely 3.6 to 5.8)
  - Claude Opus 5.5 (3.0): The design worked: typed bindings for any Terraform provider and stacks you can test. But it stopped at a pre-1.0 version, and without compatibility updates it will drift from newer Terraform, provider and Node versions. Pulumi and AWS CDK do the same job and are maintained, so they are clearly better.
  - GPT-6.2 Sol (6.3): Version 0.21.0 provides typed provider bindings, reusable constructs, and documented JSON and HCL output. Binding generation adds a build step, and TypeScript compilation can slow synthesis on large projects. Pulumi gives TypeScript more flexibility to work with deploy-time values. The evidence on performance across typical stacks and on coding-agent accuracy is limited.
- **Holds up over time: 0.6** (likely 0.1 to 1.5)
  - Claude Opus 5.5 (0.5): The vendor deprecated and archived the project, so it will not be maintained. Its continuation is a separate package, CDK Terrain (cdktn), run by a community foundation, and it does not change the future of the cdktf package.
  - GPT-6.2 Sol (0.7): HashiCorp ended support in December 2025 and the repository is read-only. The collector found one commit and zero releases in the past year, and HashiCorp says compatibility updates have ended. Existing configurations can keep running, and the community fork CDK Terrain offers a migration path, but both leave little prospect of renewed maintenance for cdktf itself.
- **Used widely: 3.1** (likely 2.1 to 4.2)
  - Claude Opus 5.5 (3.0): 1.39M downloads in 4 weeks still looks large, but they come mostly from existing pipelines and prebuilt provider packages that depend on it. Its ratio of 1.29 is far below the 4.1 median, so it is losing ground fast. Peers such as Pulumi (6x) and AWS CDK (3.2x) grow from much larger bases, and 400 dependent repos is a small number next to them.
  - GPT-6.2 Sol (3.2): Downloads rose to 1.39 million in four weeks, but the 1.29× year-over-year ratio trailed the 4.1× catalog median and every listed peer. The CLI also pulls in the library, and repeated CI installs make the download count a poor proxy for new projects. The 400 tracked dependent repositories point to an installed base well below Pulumi and AWS CDK, while the leading Bluesky posts mostly discuss the sunset. Incomplete dependency coverage leaves the number of active projects uncertain.
- **Vouched for: 3.0** (likely 1.9 to 4.1)
  - Claude Opus 5.5 (2.0): The current independent signals are mostly migration guides and notices that it is shutting down. Thoughtworks notes it never reached broad adoption. Its past HashiCorp backing no longer counts as an endorsement.
  - GPT-6.2 Sol (3.9): Ably reports successful TypeScript use across roughly 150 production workspaces and migrated them after the sunset. Mozilla Pocket also published infrastructure code built with CDKTF. These cases demonstrate production use, while current endorsements and representative satisfaction data are sparse.
- **Safe: 3.1** (likely 1.9 to 4.6)
  - Claude Opus 5.5 (3.0): It has no known advisories, few dependencies and a permissive MPL-2.0 licence. But it is archived, so any future vulnerability in it or its pinned dependencies will not be fixed. The Scorecard is low at 3.6, with zeros on Maintained, Token-Permissions, Dangerous-Workflow and SAST.
  - GPT-6.2 Sol (3.1): The core package has three direct dependencies, an MPL-2.0 license that allows commercial use, and zero direct OSV advisories in the snapshot. The OpenSSF Scorecard is 3.6 out of 10, with zero scores for maintenance, token permissions, and workflow safety. An open issue reports vulnerable dependencies in a 0.21.0 installation, and HashiCorp has ended fixes. Exposure depends on the resolved dependency versions and how the tooling is invoked.

## Good

- It reuses the full Terraform provider ecosystem through generated TypeScript bindings.
- `cdktf synth --hcl` can export existing stacks to plain Terraform files as an exit path.
- The MPL-2.0 licence allows forks, and the community fork CDK Terrain continues the code.
- It has only 3 direct dependencies and no known advisories.

## Bad

- HashiCorp deprecated and archived it in December 2025, so it gets no fixes or compatibility updates.
- There has been no release since v0.21.0 in June 2025, and it was still pre-1.0 when it stopped.
- Downloads grew far slower than the category median, which shows few teams choose it now.
- Its OpenSSF Scorecard is weak (3.6), and Maintained, Token-Permissions and Dangerous-Workflow all score 0.

## The numbers

- Downloads, 4 weeks: 1.4M
- In a year: +29%
- GitHub stars: 5.1k
- Commits, 12 months: 1
- Last npm release: Jun 2025
- Advisories, 24 months: 0
- Licence: MPL-2.0
- GitHub: https://github.com/hashicorp/terraform-cdk
- npm: https://www.npmjs.com/package/cdktf

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.
