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. # root.hcl remote_state { backend = "s3" config = { bucket = "my-tf-state"
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.…