Cloud Development Kit for Terraform
Actively maintained. Last release 1 day ago, commits in 24 of the last 26 weeks. A safe choice.
pip install cdktnREADME as published on PyPI with version 0.25.2.
cdktn
cdktn is a framework for defining cloud infrastructure using Terraform providers and modules. It allows for users to define infrastructure resources using higher-level programming languages.
CDK Terrain (CDKTN) is the community-maintained successor to CDK for Terraform (CDKTF). Migrating from CDKTF? Follow the migration guide.
Use with AI agents
The CDKTN docs are served to AI coding agents by a hosted MCP server at https://cdktn.io/docs/mcp (streamable HTTP, no auth). Point your agent at it rather than relying on prior CDKTF knowledge:
claude mcp add --transport http cdktn https://cdktn.io/docs/mcp
An agent skill and an llms.txt index are also available.
Build
Install dependencies
pnpm install
Build the package
pnpm build