Terragrunt is a thin wrapper that provides extra tools for keeping your configurations “Don’t Repeat Yourself” (DRY), working with multiple Terraform modules, and managing remote states.Documentation Index
Fetch the complete documentation index at: https://docs.envzero.com/llms.txt
Use this file to discover all available pages before exploring further.
Running Terragrunt with OpenTofu / Terraform
The env zero platform supports running Terragrunt with either OpenTofu or Terraform. By default the selected TF binary is OpenTofu. To change that, you should open theAdvanced settings and select which TF binary to use:

Run-all Terragrunt command checkbox
Within Terragrunt template configuration, underAdvanced settings - check Execute run-all commands on multiple modules
- Adds
run-allto each command, read more here. - Supported from version 0.28.1.
Target modules
env zero supports terragrunt include dir , which is a CLI Arg for Terragrunt environment that runs in arun-all mode by using environment variable ENV0_TERRAGRUNT_RUN_ALL_INCLUDE_DIRS. Terragrunt will plan and apply only those modules and their dependencies when you use this variable.
Example:
ENV0_TERRAGRUNT_RUN_ALL_INCLUDE_DIRS=module1,path_to_module/module2
Smart detect Terragrunt modules changes
If you useTerragrunt run all PR Plan feature you can use our plugin for running plan only for changed modules in the PR
Troubleshooting
There is a known issue withterragrunt run-all plan -destroy -out=.tf-plan generating an incorrectly ordered graph. Thus, if you have dependency issues with run-all destroy, please use ENV0_TERRAGRUNT_RUN_ALL_SKIP_PLAN=true in your pipeline to skip the plan step. Make sure to enable “Approve Plan Automatically”.
Suggested Blog Content
Terraform Modules Guide Terraform Plan Examples Managing Terraform Variable Hierarchy Manage Terraform Remote State with a Remote BackendNext steps
- Terragrunt Module Detection - Run plans only for changed modules in a PR.
- Managing IaC Binaries Versions - Pin Terraform or OpenTofu versions for Terragrunt.
- Managing VCS - Connect a VCS provider for GitOps deployments.