TA-002-P · Question #53
What command should you run to display all workspaces for the current configuration?
The correct answer is C. terraform workspace list. terraform workspace list displays all existing workspaces for the current configuration and marks the currently active workspace with an asterisk (*). The terraform workspace command alone is not valid on its own. terraform workspace show displays only the name of the current wor
Question
What command should you run to display all workspaces for the current configuration?
Options
- Aterraform workspace
- Bterraform workspace show
- Cterraform workspace list
- Dterraform show workspace
How the community answered
(46 responses)- A2% (1)
- B7% (3)
- C89% (41)
- D2% (1)
Explanation
terraform workspace list displays all existing workspaces for the current configuration and marks the currently active workspace with an asterisk (*). The terraform workspace command alone is not valid on its own. terraform workspace show displays only the name of the current workspace (not all of them). terraform show workspace is not a valid Terraform command at all.
Topics
Community Discussion
No community discussion yet for this question.