# hashicorp/terraform-cdk

Define infrastructure resources using programming constructs and provision them using HashiCorp Terraform

Repository: https://github.com/hashicorp/terraform-cdk
Canonical: https://ross.abutalabs.com/products/terraform-cdk
Homepage: https://www.terraform.io/cdktf
Language: TypeScript
License: MPL-2.0
License Family: copyleft
Topics: terraform, cdk, cdktf, infrastructure-as-code, hack
Archived: true
Last push: 2025-12-10T14:12:01+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 56, release rhythm 28, longevity 100
- inputs: {"age_days": 2429, "days_push": 266, "days_rel": 455, "gap_med": 52.0, "n_releases_24m": 5}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5074, forks 515 (observed 2026-08-28T04:09:09.400092+00:00)

## What it is
CDK for Terraform (CDKTF) is a framework for defining infrastructure as code using general-purpose programming languages (TypeScript, Python, Java, C#, Go) and synthesizing it into Terraform-compatible configurations. HashiCorp announced its sunset and archived the project on December 10, 2025, so it is no longer maintained.

## Use cases
- define terraform infrastructure in typescript or python instead of hcl
- generate terraform json or hcl from programming language code
- use testing and dependency management tooling for infrastructure code
- migrate cdktf projects to standard terraform hcl
- provision cloud resources with terraform providers from code

## When to choose
- you have an existing cdktf codebase and accept unmaintained-software risk
- you want to fork the project and maintain it yourself
- you need to synthesize existing cdktf code to hcl for migration

## When to avoid
- you are starting a new infrastructure-as-code project - use standard Terraform with HCL instead
- you need long-term support, updates, or compatibility with new Terraform versions
- you want an actively maintained community or bug fixes

## Facets
- artifact type: framework
- maturity: abandoned
- function: infrastructure-as-code, deployment, developer-tools
- domain: infrastructure-as-code, cloud-computing
- platform: python, jvm, dotnet, go, cli, cross-platform
- tags: terraform, cdktf, cdk, deprecated, sunset, hcl-synthesis, multi-language-iac, devops, nodejs

## Member repositories
- hashicorp/terraform-cdk (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:09.400092+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:02:46.641746+00:00, confidence not recorded.
  - readme: https://github.com/hashicorp/terraform-cdk (fetched 2026-08-28T04:09:09.400092+00:00, sha c6e3d7361b47)
  - homepage: https://www.terraform.io/cdktf (fetched 2026-08-29T08:57:52.693104+00:00, sha e48c979893c9)
  - site_page: https://developer.hashicorp.com/hcp/docs/vault-radar (fetched 2026-08-29T08:57:52.719943+00:00, sha 558d122b761a)
  - site_page: https://developer.hashicorp.com/terraform/install (fetched 2026-08-29T08:57:52.741694+00:00, sha 2e6ce87f11c9)
  - site_page: https://developer.hashicorp.com/terraform/docs (fetched 2026-08-29T08:57:52.900659+00:00, sha a0492af58be8)
  - site_page: https://developer.hashicorp.com/terraform/cloud-docs (fetched 2026-08-29T08:57:52.970720+00:00, sha c59a9bc4e2d7)
  - site_page: https://developer.hashicorp.com/terraform/docs/partnerships (fetched 2026-08-29T08:57:53.003409+00:00, sha 4853be8a2afc)
- Data as of 2026-08-30T08:39:29.467469+00:00.
