Skip to main content

atmos terraform show

Use this command to display human-readable output from the Terraform state or planfile for an Atmos component in a stack.

atmos terraform show --help

Usage​

Execute the terraform show command like this:

atmos terraform show <component> -s <stack> [options]

This command provides a human-readable view of either a Terraform state file or a plan file. It's useful for inspecting current state or reviewing planned changes.

Atmos Behavior

Atmos provides standard setup for this command including automatic terraform init and workspace selection. The show operation itself is handled by native Terraform.

Examples​

Show Current State​

# Display the current state
atmos terraform show vpc -s dev

Show Plan File​

# Display a specific plan file
atmos terraform show vpc -s dev planfile.tfplan

Show with JSON Output​

# Get state in JSON format
atmos terraform show vpc -s dev -json

Arguments​

component (required)

Atmos component name.

Flags​

--stack / -s (required)

Atmos stack name where the component is defined.

--skip-init (optional)

Skip running terraform init before executing the command.

atmos terraform show vpc -s dev --skip-init
--dry-run (optional)

Show what would be executed without actually running the command.

atmos terraform show vpc -s dev --dry-run

Native Terraform Flags​

This command supports native terraform show flags such as -json for JSON output, -no-color to disable colors.