Skip to main content
terragrunt plan produces a detailed execution plan that shows exactly which resources Terraform will create, update, or destroy. Reviewing this plan before applying changes helps you:
  • Validate the intended modifications
  • Catch configuration errors early
  • Ensure alignment with stakeholder requirements
Terragrunt enhances Terraform’s native plan command by recursively applying it across your entire configuration hierarchy. This provides a unified, end-to-end view of changes across all modules.
Terragrunt delegates to terraform plan under the hood, orchestrating plans across multiple modules and directories.
The image illustrates a Terragrunt plan process, showing how it generates an execution plan and applies it across a configuration hierarchy, with integration with Terraform.

Key Features of Terragrunt Plan

Parallel Planning Across Modules

In a modular project structure, terragrunt plan can run in parallel, speeding up the planning phase by generating multiple execution plans simultaneously.
The image illustrates a "Terragrunt plan" with a central icon connected to two puzzle piece icons, representing parallel execution.

Best Practices for terragrunt plan

  • Always review the complete execution plan before applying changes.
  • Seek approval from relevant stakeholders to prevent unintended infrastructure modifications.
  • Use version control to track and audit plan outputs.
The image is a slide titled "Terragrunt plan" with icons and text for "Review plan" and "Seek approval," along with a "Best Practices" button.
Never run terragrunt apply without first validating the execution plan. Unreviewed plans can lead to unexpected downtime or resource drift.

Example: Planning an AWS VPC Module

Below is a sample Terragrunt configuration that references the official Terraform AWS VPC module. Adjust the name input to fit your naming conventions:
To generate the plan, simply run:
After Terragrunt prepares the consolidated configuration, you’ll see an execution plan similar to this:
Always inspect the plan output to confirm that resource additions and deletions match your expectations before proceeding to terragrunt apply.

Watch Video