cdktf
Cloud Development Kit for Terraform
Decision gist · record as of 2026-08-14
No. CDKTF is abandoned and archived as of December 10, 2025 with no further maintenance, updates, or compatibility fixes. If you have an existing CDKTF project, use the built-in migration command to convert to HCL and standard Terraform. For new infrastructure projects, choose an actively maintained tool such as standard Terraform with HCL or an alternative CDK ecosystem aligned with your cloud provider.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later.
- The Terraform CLI and a Terraform provider for your target cloud platform are needed to apply synthesized configuration.
- Low install friction with a pure Python wheel and four runtime dependencies.
License · maintenance · safety
MPL-2.0 (copyleft) — Licensed under MPL-2.0 (copyleft). You may use and modify the code, but derivative works and distributed modifications must remain under the same license. No additional restrictions are applied by HashiCorp.
last release 2025-06-04 (436 days) · last repo commit 2025-12-10 · 5,075 stars · archived
0 known vulnerabilities (OSV.dev, 2026-08-14) · 449,297 downloads/mo, #6,596 on PyPI
Alternatives
Verify before relying
pip install cdktf
from cdktf import App, TerraformStack
from constructs import Construct
app = App()
stack = TerraformStack(app, "example")
app.synth()- Whether existing CDKTF projects will continue to work with future Terraform or provider releases after December 10, 2025.
- Community fork status and whether maintained alternatives exist for ongoing CDKTF development.
- Compatibility of generated HCL with complex or custom Terraform modules after migration.
What it is and what it does
CDKTF is a library that lets you write infrastructure definitions in Python instead of Terraform's HCL language. It uses familiar programming constructs (classes, functions, variables) to define cloud resources, then synthesizes them into standard Terraform configuration files that you apply with the Terraform CLI. The library depends on constructs, jsii, publication, and typeguard to bridge Python code to Terraform's underlying model.
However, CDKTF is no longer maintained. HashiCorp archived the project on December 10, 2025, stating it did not achieve product-market fit. The codebase remains available on GitHub as read-only, but will receive no updates, security patches, or compatibility fixes. You can continue using it at your own risk, and the project provides a migration command (`cdktf synth --hcl`) to convert existing projects to standard HCL for long-term support.
Use it for
- Migrate an existing Terraform project to Python code for better IDE support and testing before sunsetting the project.
- Generate HCL from a CDKTF project using `cdktf synth --hcl` to bootstrap a migration to standard Terraform.
- Maintain a legacy CDKTF application in read-only mode if you accept the risk of no future updates.
- Evaluate how programming-language infrastructure-as-code approaches compare to HCL before choosing a long-term tool.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
CDKTF is abandoned and archived as of December 10, 2025 with no further maintenance, updates, or compatibility fixes. If you have an existing CDKTF project, use the built-in migration command to convert to HCL and standard Terraform. For new infrastructure projects, choose an actively maintained tool such as standard Terraform with HCL or an alternative CDK ecosystem aligned with your cloud provider.
Install
cdktf on PyPI
Before you install
Low install friction with a pure Python wheel and four runtime dependencies. However, the project is abandoned as of December 10, 2025 and will receive no further updates, fixes, or compatibility improvements—use only if you accept ongoing maintenance risk.
Requires Python 3.9 or later. The Terraform CLI and a Terraform provider for your target cloud platform are needed to apply synthesized configuration.
License in practice
Licensed under MPL-2.0 (copyleft). You may use and modify the code, but derivative works and distributed modifications must remain under the same license. No additional restrictions are applied by HashiCorp.
Quickstart
pip install cdktf
from cdktf import App, TerraformStack
from constructs import Construct
app = App()
stack = TerraformStack(app, "example")
app.synth()
Verify before relying
- Whether existing CDKTF projects will continue to work with future Terraform or provider releases after December 10, 2025.
- Community fork status and whether maintained alternatives exist for ongoing CDKTF development.
- Compatibility of generated HCL with complex or custom Terraform modules after migration.
Package facts
| License | MPL-2.0 copyleft |
| Python support | Supports the current Python release ~=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesconstructsjsiipublicationtypeguard |
| Maintenance | Abandoned 436 days since the last release |
| Last repo commit | repository archived |
| First released | |
| Downloads | 449,297 / month, #6,596 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI ApprovedOperating System :: OS IndependentProgramming Language :: JavaScriptProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.9Typing :: Typed |
Evidence: cdktf-0.21.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “terraform programmatic definition”
- cdktfDefines cloud infrastructure using Python code that synthesizes to…
- tftestWraps the Terraform executable to facilitate testing Terraform…
- python-terraformWraps the Terraform command-line tool, allowing you to invoke…
Give your agent the search over MCP, or paste the wish link into any chat.
More Build Tools packages
Provides reusable utilities for Python packaging interoperability, including version handling, specifiers, markers, requirements, tags, and metadata parsing according to standards like PEP 440 and PEP 425.
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
pip is the standard installer for Python packages, enabling you to download and install packages from the Python Package Index and other indexes into your Python environment.
Hatchling is a standards-compliant Python build backend that handles packaging, metadata, and distribution of Python projects when configured in a project's pyproject.toml file.
Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.
pre-commit is a framework for installing and running git hooks written in any language before commits are made, automating code quality and validation checks across multi-language projects.
Install it if your team needs consistent, automated validation at commit time.
See also cdktf-cdktf-provider-aws · bc-python-hcl2 · tfparse · python-terraform · python-hcl2 · aws-cdk.aws-cloudformation · terraform-compliance · aws-cdk.assets · pyhcl · cdk8s