Workspace list
Show all workspaces; current one marked with *
terraform workspace list
More terraform commands
-
terraform workspace new staging && terraform workspace select stagingCreate a new workspace and switch to it
-
terraform validateCheck Terraform configuration for syntax and consistency errors
-
terraform fmt -recursiveAuto-format all .tf files recursively
-
terraform output -jsonPrint all outputs as JSON; useful for pipeline scripting
-
terraform destroy -target=module.vpc.aws_vpc.mainDestroy a single resource without touching everything else