Gruntwork Patcher now natively supports Terragrunt Stacks. Stacks help you manage infrastructure at scale by logically grouping OpenTofu/Terraform units into versioned entities, keeping your IaC DRY and your blast radius small. For a detailed overview, see our announcement blog post.
Now, when you release new versions of your unit and stack definitions, Patcher automatically detects these changes and ensures all stacks referencing previous versions receive the corresponding updates. Specifically, Patcher will:
source
in a terragrunt.stack.hcl
file in your catalog repo when a new unit version is releasedsource
in a terragrunt.stack.hcl
file in your catalog repo when a new stack version is releasedsource
in a terragrunt.stack.hcl
file in your live infrastructure repo when a new unit version is releasedsource
in a terragrunt.stack.hcl
file in your live infrastructure repo when a new stack version is releasedThis functionality is available now. Using Patcher with Terragrunt Stacks lets you maintain DRY code while preserving flexibility in which versions deploy to each environment, and we now recommend versioned stacks over the _envcommon
pattern. Refer to the migration guide for more information on using versioned stacks.