Using Terraform CLI, how do you create a new workspace?
Experience Level: Junior
Tags: Terraform
Answer
Run the following command:
terraform workspace new your-workspace-name
Related Terraform job interview questions
Using Terraform CLI, how do you switch to a different workspace?
Terraform JuniorUsing Terraform CLI, how do you delete a workspace?
Terraform JuniorUsing Terraform CLI, how do you display list of Terraform workspaces?
Terraform JuniorUsing Terraform CLI, how do you update the state file of your infrastructure with metadata that matches the physical resources they are tracking?
Terraform JuniorUsing Terraform CLI, how do you remove locally-stored credentials for specified hostname of Terraform Enterprise?
Terraform Junior