Forrest logo
back to the terragrunt tool

terragrunt:tldr:681e1

terragrunt: Show current deployment (from state).
$ terragrunt show
try on your machine

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:

  1. Locates the Terraform code and configuration files in the current working directory.
  2. Evaluates the Terraform configuration by reading the .tf files and .tfvars files.
  3. Fetches or updates any necessary remote modules.
  4. 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.

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