Skip to main content

atmos terraform workspace list

Use this command to list all Terraform workspaces for an Atmos component in a stack.

atmos terraform workspace list --help

Usage

Execute the terraform workspace list command like this:

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

This command lists all available Terraform workspaces for the specified component's backend configuration. The current workspace is indicated with an asterisk (*).

tip

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

Examples

# List all workspaces
atmos terraform workspace list 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 list vpc -s dev --dry-run
--skip-init (optional)

Skip running terraform init before executing the command.

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

See Also