Elestia Open Source Ratings
1.4

CDK for Terraform

Do not start with it. 8th of 8 infrastructure as code.

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.

WebsiteGitHubnpm

Scores

Overall1.4

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

Claude Opus 5.5: 1.0, likely 0.5 to 2.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, likely 0.9 to 2.5

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.

  • github.com/hashicorp/terraform-cdk: The official sunset notice confirms the end of support and documents HCL export.
  • github.com/pulumi/pulumi: Pulumi supports TypeScript and multiple clouds.
  • peers Pulumi, npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio: Pulumi is actively releasing and grew about 6×, compared with 1.29× for CDKTF and a 4.1× catalog median.
Needed by many4.3

How many developers need a tool for this job?

Claude Opus 5.5: 4.0, likely 3.0 to 5.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, likely 3.3 to 6.0

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 lot4.7

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

Claude Opus 5.5: 3.0, likely 2.0 to 4.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, likely 5.1 to 7.5

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 time0.6

Will it still be a good choice in two years?

Claude Opus 5.5: 0.5, likely 0.0 to 1.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, likely 0.2 to 1.5

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 widely3.1

How many use it, and is that growing?

Claude Opus 5.5: 3.0, likely 2.0 to 4.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.

  • npm downloadsLast4Weeks: 1,393,657, against 1,081,864 a year ago, a ratio of about 1.29.
  • medianDownloadsRatio: The median ratio is 4.1, so cdktf is losing share.
  • dependents: 400 repos and 213 packages, against 4,665 repos for AWS CDK and 2,143 for Pulumi.
  • bluesky posts: 18 posts, mostly announcing the archive.

GPT-6.2 Sol: 3.2, likely 2.1 to 4.4

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.

  • npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, medianDownloadsRatio: 1,393,657 versus 1,081,864 downloads, yielding 1.29× against a 4.1× median.
  • dependents, peers: 400 indexed repositories and 213 packages depend on cdktf, versus 2,143 repositories for Pulumi and 4,665 for AWS CDK.
  • github.com/hashicorp/terraform-cdk/blob/v0.21.0/packages/cdktf-cli/package.json: The CLI declares cdktf as a dependency.
  • github stars, bluesky posts and top: 5,061 stars and 18 Bluesky posts, with the most-liked posts focused on the sunset.
Vouched for3.0

Who stands behind it being good?

Claude Opus 5.5: 2.0, likely 1.0 to 3.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, likely 2.7 to 5.2

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.

Safe3.1

How safe is it to depend on?

Claude Opus 5.5: 3.0, likely 2.0 to 4.5

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.

  • advisories total: 0 advisories.
  • scorecard score: 3.6, with several checks at 0.
  • npm dependencies: 3 direct dependencies.
  • npm license: MPL-2.0, which is weak copyleft and fine for commercial use.

GPT-6.2 Sol: 3.1, likely 1.7 to 4.6

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.

  • npm dependencies, npm license, advisories total: Three direct dependencies, MPL-2.0, and zero direct OSV advisories.
  • scorecard score, scorecard checks: 3.6 overall, with maintenance, workflow safety, and token permissions scoring zero.
  • github.com/hashicorp/terraform-cdk/issues/3947: An unresolved audit report identifies dependency advisories in a 0.21.0 setup.
  • github.com/hashicorp/terraform-cdk: HashiCorp confirms that further fixes have ended.

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

npm downloads, 4 weeks
1.4M +29% in a year
GitHub stars
5.1k
Commits, 12 months
1
npm version
0.21.0 Jun 2025
Versions, 12 months
0
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
3.6 out of 10, Oct 2026
Licence
MPL-2.0

Read on 21 November 2026 from GitHub (hashicorp/terraform-cdk), npm (cdktf), 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