# CDKTF

5 Hacker News commenters recommended CDKTF and 2 criticized it, November 2025 to November 2026. It was recommended in 2 of 13 months.

**Verdict:** Recommended for expressing Terraform infrastructure in general-purpose languages with functions and loops. Main caveat: it just generates JSON/HCL underneath, which some find clunky.

## Why people recommend it

- Real languages with functions and loops (1 comments): "That + being able to use functions, variables, loops, arrays, and structs for composition made it a completely different experience." ([source](https://news.ycombinator.com/item?id=47103634))
- Works with unmodified Terraform modules (1 comments): "which can handle unmodified modules" ([source](https://news.ycombinator.com/item?id=46222266))

## What people warn about

- Clunky: generates JSON/HCL underneath (1 comments): "I always found it kind of clunky how it's ultimately just generating JSON/HCL anyway" ([source](https://news.ycombinator.com/item?id=46225896))
- Seen as awful, just the least bad (1 comments): "CDKTF was awful, it was just the least bad thing around." ([source](https://news.ycombinator.com/item?id=47084665))
- Imperative languages too unconstrained (1 comments): "Imperative languages are too unconstrained." ([source](https://news.ycombinator.com/item?id=47083187))

## Alternatives hackers recommend

- [Terraform](https://hackerapproved.com/p/terraform.md): 128 recommend
- [Pulumi](https://hackerapproved.com/p/pulumi.md): 44 recommend
- [AWS CDK](https://hackerapproved.com/p/aws-cdk.md): 29 recommend
- [OpenTofu](https://hackerapproved.com/p/opentofu.md): 20 recommend
- [SST](https://hackerapproved.com/p/sst.md): 9 recommend

## Cite as

Hacker Approved, "CDKTF", https://hackerapproved.com/p/cdktf/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
