aicoolies logo
CDKTF logo

CDKTF

HashiCorp's Cloud Development Kit for defining Terraform with code

Share
open-sourceOpen Source
Visit Website →

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

Alternatives

Related Tools

KubeAI

Kubernetes operator for serving AI inference workloads

KubeAI is an Apache-2.0 Kubernetes operator for deploying and scaling AI inference workloads, including LLMs, embeddings, reranking, and speech-to-text. It gives platform teams OpenAI-compatible endpoints, model proxy/controller primitives, model caching, scale-from-zero behavior, and cluster-native resource management for self-hosted inference on Kubernetes.

open-sourceOpen Source
Freestyle logo

Freestyle

Sandboxes for coding agents — Linux VMs, Git, and deploys in one box

Freestyle is YC-backed sandbox infrastructure built for AI coding agents, shipping secure Linux VMs with nested virtualization, Git servers, and one-click web deploys. It lets agents run real workloads, branch repos, and deploy apps under short-lived identities while billing only for active compute. Used in production by vly.ai, Rork, and Vibeflow.

freemium
OpenSRE logo

OpenSRE

Open-source toolkit for building AI SRE incident response agents

OpenSRE is Tracer Cloud’s open-source public-alpha Python toolkit for building AI SRE agents that investigate and respond to production incidents. It ships 60+ tools across observability, databases, incident management, communications, deployment and protocol integrations, plus simulation/evaluation workflows for benchmarking agent accuracy before live pager use.

open-sourceOpen Source
Twill AI logo

Twill AI

Autonomous coding agents that ship while you sleep

Twill is an autonomous coding agent platform that implements features, fixes bugs, and ships pull requests without manual intervention. Uses structured workflow of research, planning, human review, implementation in isolated sandbox, AI code review, then merge. Supports custom agent configurations with multiple LLM providers, isolated dev environments for verification, and integrations with GitHub, Linear, Sentry, Notion, and cloud platforms for end-to-end engineering automation.

freemium
Baseten logo

Baseten

ML inference platform for production AI models

Baseten is the inference platform for deploying AI models at scale with dedicated and pre-optimized model APIs and performance-optimized infrastructure. Specializes in image generation, transcription, text-to-speech, LLM serving, embeddings, and compound AI workloads. Delivers 75% latency reduction with 415ms cold starts and 3000+ concurrent scaling. Available as managed cloud or self-hosted, trusted by Cursor, Notion, Descript, and Sourcegraph for production inference.

api-usage-based
Resolve AI logo

Resolve AI

AI-powered production incident resolution

Resolve AI automates production incident investigation, diagnosis, and remediation acting as an AI SRE that participates in every on-call rotation. Autonomously investigates incidents pursuing multiple hypotheses in parallel, validates against real evidence, creates code snippets and drafts PRs, generates post-mortems, and onboards new teammates with instant answers about code and infrastructure. Drives 5x faster MTTR and 87% faster incident investigations.

paid