Skip to main content

atmos terraform workspace show

Use this command to show the name of the current Terraform workspace for an Atmos component in a stack.

atmos terraform workspace show --help

Usage

Execute the terraform workspace show command like this:

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

This command displays the name of the currently selected Terraform workspace for the specified component.

tip

Run atmos terraform workspace show --help to see all the available options

Examples

# Show the current workspace
atmos terraform workspace show vpc -s dev

Arguments

component (required)

Atmos terraform component.

Flags

--stack (alias -s) (required)

Atmos stack.

--dry-run (optional)

Show what would be executed without actually running the command.

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

Skip running terraform init before executing the command.

atmos terraform workspace show vpc -s dev --skip-init

See Also