What are Terraform CLI workspaces?
IntermediateConceptState Internals
Answer
Multiple named state instances for the same configuration and backend. terraform workspace new staging, select, list, show, delete. The current name is terraform.workspace. In S3, non-default workspaces are stored under env:/<name>/<key>. They share code, backend and credentials, so they are not strong isolation.
More on State Internals
What does the state file contain?BeginnerWhat is the difference between local and remote state?BeginnerHow do you configure the S3 backend?BeginnerWhat is state locking and why does it matter?IntermediateHow does S3-native locking work and how does it replace DynamoDB?AdvancedHow do you inspect resources in state?Beginner