Keep your Terraform code DRY Motivation Remote Terraform configurations How to use remote configurations Achieve DRY Terraform code and immutable infrastructure Working locally Important gotcha: working with relative file paths Using Terragrunt with private Git repos Motivation Consider the following file structure, which defines three environments (prod, qa, stage) with the same infrastructure in