Terragrunt folder structure and include Terragrunt projects split config into two layers: a root hcl file with shared settings, and per-unit terragrunt.hcl files that inherit from it.…
Terragrunt remote_state and generate blocks remote_state Defines the backend once in root.hcl - Terragrunt auto-generates the backend config for every unit that includes it.…
Terragrunt run-all Runs a Terraform command across all units in the current directory tree, respecting dependency order. cd environments/prod terragrunt run-all plan terragrunt run-all apply terragrunt run-all destroy # reverse order environments/prod/…
What is Terragrunt and why you need it the multi-env problem With plain Terraform, managing multiple environments means duplicating config - same modules, different variable files, same backend boilerplate repeated everywhere.…