Interview Prep/Terraform/Rapid-Fire Commands

List, create and select workspaces?

IntermediateProductionRapid-Fire Commands
Answer
terraform workspace list
terraform workspace new staging
terraform workspace select prod
terraform workspace show

Check workspace show before every apply when using workspaces.

All Terraform questions

More on Rapid-Fire Commands