Using Terraform CLI, how do you display list of Terraform workspaces?
Experience Level: Junior
Tags: Terraform
Answer
Run the following command:
terraform workspace list
Related Terraform job interview questions
Using Terraform CLI, how do you delete a workspace?
Terraform JuniorUsing Terraform CLI, how do you create a new workspace?
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 JuniorUsing Terraform CLI, how do you retrieve authentication token for the given hostname to Terraform Enterprise?
Terraform Junior