terragrunt:tldr:681e1
The terragrunt show
command is used in the Terraform and Terragrunt infrastructure-as-code (IaC) tools to display an overview of the Terraform changes that would occur if the Terragrunt configuration is deployed.
When you run terragrunt show
, it:
- Locates the Terraform code and configuration files in the current working directory.
- Evaluates the Terraform configuration by reading the
.tf
files and.tfvars
files. - Fetches or updates any necessary remote modules.
- Determines the resource changes, such as creation, modification, or deletion, that would be applied if
terragrunt apply
were run.
It then generates an execution plan and displays a summary of the changes. This includes information like the affected resources, their attributes, and the actions that would occur during a subsequent deployment.
It's important to note that terragrunt show
does not make any changes to your infrastructure. It purely shows you what changes would be made by running terragrunt apply
. This helps you validate the changes before actually deploying them.
Overall, terragrunt show
is a powerful command that provides insight into the expected changes in your infrastructure and allows you to review and verify the modifications before proceeding.