aicoolies logo
CDKTF logo
CDKTF logo

CDKTF

HashiCorp's Cloud Development Kit for defining Terraform with code

open sourceupdated Apr 21, 2026

CDKTF (Cloud Development Kit for Terraform) lets developers define infrastructure using TypeScript, Python, Java, C#, or Go instead of HCL. It synthesizes familiar programming language constructs into standard Terraform JSON configuration. Developed by HashiCorp, it brings software engineering patterns like loops, conditionals, and abstractions to infrastructure definition with full IDE support.

CDKTF bridges the gap between application development and infrastructure management by allowing developers to define cloud resources using the programming languages they already know. Instead of learning HCL syntax and its declarative conventions, teams write TypeScript, Python, Java, C#, or Go code that defines infrastructure through imported constructs representing Terraform providers and resources. The CDKTF synthesizer then converts this code into standard Terraform JSON that the Terraform CLI executes normally.

The code-first approach unlocks software engineering patterns that are difficult or impossible in HCL. Developers can use loops to generate multiple similar resources, conditionals to adjust configurations based on environment variables, class inheritance to create reusable infrastructure abstractions, and unit testing frameworks to validate infrastructure logic before deployment. Full IDE support including autocomplete, type checking, and inline documentation makes infrastructure code as discoverable as application code.

CDKTF integrates with the entire Terraform ecosystem including all existing providers, modules, and state backends. Teams can incrementally adopt CDKTF alongside existing HCL configurations, converting modules one at a time rather than requiring a complete rewrite. The framework is developed by HashiCorp and maintained as part of the official Terraform ecosystem, ensuring long-term compatibility with Terraform's evolution including support for OpenTofu as an alternative backend.

Pricing

Free and open-source under MPL 2.0

Platforms

TypeScript, Python, Java, C#, Go, any OS

Categories

Tags

Use Cases

Related Tools

computed discovery: shared active categories · kept separate from editor-verified Alternatives

KTransformers parent kvcache-ai logo

KTransformers

Heterogeneous CPU-GPU inference and SFT for large MoE models

Open-source framework for running and fine-tuning large Mixture-of-Experts models with heterogeneous CPU-GPU execution, optimized kernels, limited VRAM and SGLang or LLaMA-Factory integrations.

Open Source
vLLM Production Stack parent vLLM logo

vLLM Production Stack

Official Kubernetes and Helm reference stack built on the vLLM inference engine

Official vLLM reference implementation for scaling the existing inference engine on Kubernetes with Helm, request routing, KV-cache offload, autoscaling and Prometheus/Grafana observability.

Open Source
Dynamo logo

NVIDIA Dynamo

Distributed inference orchestration above vLLM, SGLang and TensorRT-LLM

Open-source, datacenter-scale orchestration layer that coordinates vLLM, SGLang and TensorRT-LLM across nodes with disaggregated serving, KV-aware routing, multi-tier cache management and automatic scaling.

Open Source
GPUStack logo

GPUStack

Open-source GPU control plane for scalable AI model serving

Open-source GPU cluster manager that configures vLLM, SGLang, TensorRT-LLM or custom engines, serves models through compatible APIs, and provisions SSH-accessible GPU instances across on-premises, Kubernetes and cloud environments.

Open Source
Mooncake logo

Mooncake

Disaggregated KV cache storage and transfer for LLM serving

Open-source infrastructure for disaggregated LLM serving that pools KV caches across prefill and decode workers, with high-performance transfer, distributed storage and integrations for vLLM and SGLang.

Open Source
LMCache logo

LMCache

Reusable KV cache infrastructure for scalable LLM inference

Open-source KV cache management layer that persists, offloads and reuses model key-value caches across requests and serving engines to reduce repeated prefill work and improve inference throughput.

Open Source

FAQ

What is CDKTF?

CDKTF (Cloud Development Kit for Terraform) lets developers define infrastructure using TypeScript, Python, Java, C#, or Go instead of HCL. It synthesizes familiar programming language constructs into standard Terraform JSON configuration. Developed by HashiCorp, it brings software engineering patterns like loops, conditionals, and abstractions to infrastructure definition with full IDE support.

Is CDKTF free?

Yes — CDKTF is open source and free to use. Free and open-source under MPL 2.0

Is CDKTF open source?

Yes — CDKTF is open source.

What are the best CDKTF alternatives?

The top editor-verified CDKTF alternatives are Gruntwork, env0.