Why Version Compatibility Matters
- Prevents runtime errors during
terragrunt planorterragrunt apply - Ensures access to the latest features without sacrificing stability
- Simplifies troubleshooting by minimizing version-related issues
Always review the Terragrunt release notes before upgrading. Breaking changes can impact your existing configuration.
Compatibility Chart
Refer to the matrix below to confirm which Terragrunt versions support your Terraform or OpenTofu release:
Best Practices for Managing Versions
| Action | Example |
|---|---|
| Pin Terraform/OpenTofu in modules | hcl<br>terraform {<br> required_version = ">= 1.5.0, < 1.6.0"<br>}<br> |
| Lock Terragrunt in CI/CD | yaml<br>steps:<br>- uses: gruntwork-io/[email protected]<br> |
| Regularly audit version constraints | Run terragrunt validate-all after upgrades to catch incompatibilities |