Hacker News new | ask | show | jobs
by datatrashfire 1382 days ago
Terragrunt is an antipattern. Made the mistake once with a very poorly structured project I inherited, never again.
2 comments

Terragrunt is not an anti-pattern, but it is a tool that is easier to get wrong than Terraform and so people create great messes with it.

Used right it's the only way to remain sane on any non-trivial set of infra where you don't end up hand-rolling a half-baked version of Terragrunt.

Managing 10^5 servers right now with Terragrunt. Can confirm, it's the only way to stay sane.

Getting to this point was a learning process though. Probably six solid years of investment now.

From experience terragrunt + atlantis has been much better experience than hashicorp's own terraform enterprise service.
not using terraform enterprise.
"Code generation" is pure evil.

I second that Terraform needs to work at least on dynamically specifying providerblocks. This is where people usually resort to terragrunt.

Workspaces and state layering are in my experience hard on the novices and unfortunately they turn to terragrunt.