terragrunt apply command—your gateway to automating infrastructure changes with Terragrunt and Terraform. After reviewing changes with terragrunt plan, terragrunt apply executes the approved plan, provisioning or updating resources across one or multiple modules.

Why Run terragrunt apply?
Always executeterragrunt apply after confirming the plan from terragrunt plan. This two-step approach ensures you understand potential changes before they impact your infrastructure.

Under the hood, Terragrunt invokes Terraform’s terraform apply command and manages shared configuration across modules for you.

By default, Terragrunt will execute modules in parallel, vastly reducing deployment time in large, modular repositories.

Best Practices
- Review the Plan: Always inspect the execution plan to catch unintended changes.
- Get Stakeholder Approval: Ensure team members sign off on modifications.
- Use Version Constraints: Pin module and provider versions for reproducibility.
Quick Reference: Common terragrunt apply Flags
| Flag | Description | Example |
|---|---|---|
| —auto-approve | Skip interactive confirmation | terragrunt apply --auto-approve |
| —target | Restrict apply to a specific module or resource | terragrunt apply --target=module.vpc |
| —terragrunt-include-external-dependencies | Include external dependencies in apply run | terragrunt apply --terragrunt-include-external-dependencies |
Applying Your VPC Module
We’ve already approved the execution plan for our VPC module. Below is the Terragrunt configuration and the commands to apply it:yes: