Forrest logo
back to the terragrunt tool

terragrunt:tldr:b82c1

terragrunt: Build or change infrastructure from a tree of Terragrunt modules (stack).
$ terragrunt run-all apply
try on your machine

The command "terragrunt run-all apply" is used to execute the Terraform apply command across all Terraform modules within a specified directory. Here is the breakdown of each part of the command:

  • "terragrunt": Terragrunt is a thin wrapper around Terraform that adds extra functionality and simplifies the use of Terraform in large-scale or complex infrastructures. It is used to manage multiple Terraform configurations, improve remote state management, enforce best practices, and much more.

  • "run-all": This is a Terragrunt command that instructs Terragrunt to execute a specific command across all Terraform modules within a specified directory. In this case, the command to be executed is "apply".

  • "apply": This is a Terraform command that is responsible for creating or updating resources defined within your Terraform configuration files. It reads the configuration files, plans the changes needed to reach the desired state, and applies those changes to the infrastructure.

Overall, "terragrunt run-all apply" is a command that executes the Terraform apply command on all Terraform modules within a specified directory, allowing for the creation or update of infrastructure resources across multiple modules simultaneously.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the terragrunt tool