Interview Prep/Terraform/State Internals

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.

All Terraform questions Roadmap: Terraform in production

More on State Internals