$npx skillfedfor your agent

cdktf

Cloud Development Kit for Terraform

SkipPyPI Build ToolsReleased Jun 2025449.3K downloads / moMPL-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — cdktf-0.21.0-py3-none-any.whl
v0.21.0 · released 2025-06-04 · Python ~=3.9 · 4 runtime deps: constructs, jsii, publication, typeguard

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

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.
Same gist for agents: .md · .json

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.

Skip

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

LicenseMPL-2.0 copyleft
Python supportSupports the current Python release ~=3.9
Install frictionLow. Pure-Python wheel
Runtime dependencies
4 packages
constructsjsiipublicationtypeguard
MaintenanceAbandoned 436 days since the last release
Last repo commit repository archived
First released
Downloads449,297 / month, #6,596 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
infrastructure as code pythonterraform programmatic definitioncloud infrastructure code generationterraform alternative to hclpython terraform provisioningcdk terraforminfrastructure automation python
Topics
infrastructure-as-codeterraformarchived

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

packaging Worth it
PyPI · Build Tools · released Aug 2026

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.

Apache-2.0 OR BSD-2-Clausepure Python · 3.9+
2.2Bdownloads / mo
tqdm Worth it
PyPI · Libraries · released Jul 2026

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.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
pip Worth it
PyPI · Build Tools · released Aug 2026

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.

MITpure Python · 3.10+
617.5Mdownloads / mo
hatchling Worth it
PyPI · Python Modules · released Aug 2026

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.

MITpure Python · 3.10+
484.2Mdownloads / mo
grpcio-tools Worth it
PyPI · Build Tools · released Jul 2026

Generates Python gRPC service stubs and message classes from Protocol Buffer definitions, enabling developers to build gRPC clients and servers.

Apache-2.0compiled wheel · 3.10+
278.2Mdownloads / mo
pre-commit Worth it
PyPI · Build Tools · released Aug 2026

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.

permissive licensepure Python · 3.10+
179.9Mdownloads / mo

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