terraform workspace vs directory code example
Example: terraform workspace
#Commands for terraform workspace management
#List Workspace
terraform workspace list
#Create new workspace
terraform workspace new <name>
#Show current workspace
terraform workspace show
#Switch Workspace
terraform workspace select <workspace name>
#Delete the Workspace
terraform workspace delete <workspace name>
NOTE:- You can NEVER DELETE the "Default" workspace