Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit

Heimdall has already been helpful to me in flagging there was an error with our CODEOWNERS file; someone had departed the company and no longer has write access to the repo. We should avoid naming individuals and try to use teams instead for that reason.

Also removed the line about branch protection rules because that may stop being true in the future as per new security policy that will be rolling out.

Git stats


Failed to load latest commit information.
Latest commit message
Commit time
June 8, 2023 15:10
August 18, 2021 18:04
March 23, 2022 12:03
June 1, 2023 14:16
June 1, 2023 11:01
November 11, 2022 14:06
October 25, 2022 17:38
January 31, 2023 11:05
April 13, 2023 14:16
June 5, 2023 16:03

npm version PyPI version NuGet version Maven Central homebrew

CDK for Terraform

Cloud Development Kit for Terraform (CDKTF) allows you to use familiar programming languages to define cloud infrastructure and provision it through HashiCorp Terraform. This gives you access to the entire Terraform ecosystem without learning HashiCorp Configuration Language (HCL) and lets you leverage the power of your existing toolchain for testing, dependency management, etc.

We currently support TypeScript, Python, Java, C#, and Go.

terraform platform

CDKTF includes two packages:

  • cdktf-cli - A CLI that allows users to run commands to initialize, import, and synthesize CDK for Terraform applications.
  • cdktf - A library for defining Terraform resources using programming constructs.

Get Started

Choose a language:

Hands-on: Try the tutorials in the CDK for Terraform collection on HashiCorp Learn.


Refer to the CDKTF documentation for more detail about how to build and manage CDKTF applications, including:

  • Application Architecture: Learn the tools and processes that CDKTF uses to leverage the Terraform ecosystem and convert code into Terraform configuration files. It also explains the major components of a CDKTF application and how those pieces fit together.

  • Project Setup: Learn how to create a new CDKTF project from a pre-built or custom template. Also learn how to convert an existing HCL project into a CDKTF application.

  • Unit Tests: Learn how to test your application in Typescript with jest.

  • Examples: Reference example projects in every supported language and review explanatory videos and other resources.


The development team would love your feedback to help guide the project.


About prerequisites, refer the followings.

Clone the project repository.

git clone

Download dependencies.

cd terraform-cdk/
yarn install

Build the project and packages.

yarn build