atmos terraform workspace new
Use this command to create a new Terraform workspace for an Atmos component in a stack.
Usage
Execute the terraform workspace new command like this:
atmos terraform workspace new <component> -s <stack> [workspace-name] [options]
This command creates a new Terraform workspace. If no workspace name is provided, Atmos calculates the appropriate workspace name from the component's context variables and stack configuration.
tip
Run atmos terraform workspace new --help to see all the available options
Examples
# Create a new workspace (auto-calculated from stack context)
atmos terraform workspace new vpc -s dev
# Create a workspace with a specific name
atmos terraform workspace new vpc -s dev my-workspace