🗂️ Navigation

CDK for Terraform (CDKTF)

Define infrastructure resources using your favorite programming languages.

Visit Website →

Overview

CDK for Terraform (CDKTF) is a project by HashiCorp that allows you to use familiar programming languages to define and provision infrastructure. It brings the benefits of the AWS Cloud Development Kit (CDK) to the Terraform ecosystem. With CDKTF, you can write your infrastructure code in languages like TypeScript, Python, Java, C#, and Go, and it will be synthesized into Terraform JSON configuration, which can then be used with the standard Terraform workflow.

✨ Key Features

  • Use familiar programming languages
  • Leverage the full power of Terraform's ecosystem
  • Create reusable infrastructure components
  • Strongly-typed infrastructure definitions

🎯 Key Differentiators

  • Built on top of Terraform
  • Access to the entire Terraform provider ecosystem
  • Familiar workflow for Terraform users

Unique Value: Combines the flexibility of programming languages with the power and ecosystem of Terraform.

🎯 Use Cases (3)

Teams that want to use a programming language to define their Terraform infrastructure Building complex and dynamic infrastructure configurations Creating and sharing reusable infrastructure modules

✅ Best For

  • Defining a complex set of AWS resources using TypeScript
  • Creating a reusable module for deploying a standard application stack

💡 Check With Vendor

Verify these considerations match your specific requirements:

  • Teams that prefer the simplicity of HCL and a purely declarative approach.

🏆 Alternatives

Pulumi AWS CDK

Offers a way to use programming languages for infrastructure definition without leaving the well-established Terraform ecosystem, unlike Pulumi which is a separate platform.

💻 Platforms

Desktop

✅ Offline Mode Available

🔌 Integrations

Terraform All Terraform providers

💰 Pricing

Contact for pricing
Free Tier Available

Free tier: CDK for Terraform is open source and free to use.

Visit CDK for Terraform (CDKTF) Website →