# Terraform

128 Hacker News commenters recommended Terraform and 84 criticized it, November 2025 to November 2026. It was recommended in 12 of 13 months.

**Verdict:** A declarative, predictable way to automate cloud infrastructure across many providers, and LLMs write it well; critics find HCL awkward for loops and conditionals and state management confusing.

## Why people recommend it

- Declarative and predictable (4 comments): "Terraform's declarative approach provided more consistency and predictability in how infrastructure was defined and provisioned." ([source](https://news.ycombinator.com/item?id=48345145)) "It’s declarative, type safe and just expressive enough to create basic conditionals, loops and reusable modules." ([source](https://news.ycombinator.com/item?id=45920643)) "From the perspective of someone who provides devops support to multiple teams, terraform is more "predictable"." ([source](https://news.ycombinator.com/item?id=45959275))
- Automates reproducible infrastructure (5 comments): "automate with Terraform and run reproducible runtimes like k3s or devcontainers so environments stay consistent" ([source](https://news.ycombinator.com/item?id=47295553)) "I have recently started using terraform/tofu and ansible to automate nearly all of the devops operations." ([source](https://news.ycombinator.com/item?id=46672038)) "It's like 12 lines of terraform to fully automate this, inside your existing IaC infrastructure." ([source](https://news.ycombinator.com/item?id=47901524))
- AI assistants write it well (5 comments): "I really do think I'm 10x faster with Terraform, because I don't need to read all the documentation" ([source](https://news.ycombinator.com/item?id=46227373)) "Writing some initial resources and asking it to "make it normal," is helpful. That does save time." ([source](https://news.ycombinator.com/item?id=46928275)) "The Terraform Registry is easy for the agent to comprehend, HCL has been stable for years now." ([source](https://news.ycombinator.com/item?id=46283707))
- Broad provider and vendor support (4 comments): "it was faster for an SA when i was at AWS to create a Terraform module and have it merged into Terraform" ([source](https://news.ycombinator.com/item?id=46864197)) "The fact that you can use to to configure your Cisco products as well as AWS is honestly great for us." ([source](https://news.ycombinator.com/item?id=47083083)) "The Terraform Registry is easy for the agent to comprehend, HCL has been stable for years now." ([source](https://news.ycombinator.com/item?id=46283707))

## What people warn about

- HCL awkward for loops, conditionals (4 comments): "This is not necessarily a problem except that they had to live in the original HCL v1 landscape which makes them awkward syntactically." ([source](https://news.ycombinator.com/item?id=46160807)) "The way you have to bend over backwards in Terraform just to instantiate a thing multiple times based on some data really annoys me" ([source](https://news.ycombinator.com/item?id=47084430)) "stop trying to program in a configuration language (Terraform HCL with surprises like non-short-circuited AND evaluation)" ([source](https://news.ycombinator.com/item?id=45958977))
- Confusing, limited state handling (3 comments): "What's even the point of caching a state if the state can be changed behind Terraform's back." ([source](https://news.ycombinator.com/item?id=48803759)) "The most confusing part of terraform for me is that terraform's view of the infrastructure is a singleton config file that is often stored in that very infrastructure" ([source](https://news.ycombinator.com/item?id=46747100)) "TF has a limitation on state size. And when you hit that limit, you have to either slow down a ton or do a (big) refactoring." ([source](https://news.ycombinator.com/item?id=45858305))
- Gets complex at scale (3 comments): "The real issues with Terraform come when you start to want to orchestrate different workspaces triggering each other" ([source](https://news.ycombinator.com/item?id=46228733)) "Terraform variable management is our larger problem (now/nearterm) when we have to deploy numerous cells of infra" ([source](https://news.ycombinator.com/item?id=45851128)) "All these started with pure declarative DSL then incrementally created a nightmarish imperative monstrosity." ([source](https://news.ycombinator.com/item?id=46158257))
- Overkill for small projects (2 comments): "Why the hell is this anywhere near AWS, or Terraform, or any other PaaS nonsense?" ([source](https://news.ycombinator.com/item?id=47277224)) "ive seen teams spend their first month writing helm charts and terraform before they even have a single paying user" ([source](https://news.ycombinator.com/item?id=47784506))

## Alternatives hackers 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
- [Stelvio](https://hackerapproved.com/p/stelvio.md): 8 recommend

## Cite as

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