Workspaces
What are workspaces?
Workspaces contain the actual Terraform deployments and allow the planning, applying, or destroying of infrastructure defined by a Terraform module. In addition, workspaces provide access to a list of runs and their details (logs) among other things like Terraform and environment variables.
Tharsis UI's workspace details page provides access to the deployed resources, input variables, outputs, dependencies, and state file for a given deployment.
Learn more.
Workspaces can share outputs with other workspaces using the Tharsis Terraform Provider. Control who can read outputs with workspace output visibility.
What are workspace labels?
Workspace labels are key-value pairs that you can attach to workspaces to organize, categorize, and manage them more effectively. Labels provide flexible metadata that helps you identify and group workspaces based on your organizational needs.
Why use workspace labels?
Labels offer several benefits for workspace management:
- Environment Organization: Distinguish between production, staging, and development workspaces
- Team Ownership: Identify which team or individual owns or manages a workspace
- Cost Allocation: Track and allocate infrastructure costs by project, department, or cost center
- Compliance Tracking: Mark workspaces that require specific compliance standards (PCI, HIPAA, etc.)
- Application Metadata: Tag workspaces with application names, versions, or components
Labels are optional but highly recommended for organizations managing multiple workspaces. They make it easier to understand workspace purpose at a glance and enable better organization as your infrastructure grows.
Check the FAQ to see if there's already an answer.
Create a workspace
Workspaces can be created directly via the Tharsis UI or the Tharsis-CLI.
-
From the group details page, click
NEW WORKSPACE:
-
Provide the workspace name, optionally a short memorable description, and click
CREATE WORKSPACE:
cautionWorkspace names may only contain digits, lowercase letters with a hyphen or an underscore in non-leading or trailing positions.
A workspace's name cannot be changed once created. It will have to be deleted and recreated which is dangerous.
Update a workspace
-
From the workspace details page, click
EDIT:
-
Provide a new workspace description (can be empty) and click
UPDATE WORKSPACE:
Managing Workspace Labels
Workspace labels can be managed through the Tharsis UI or CLI. You can add labels when creating a workspace or manage them on existing workspaces.
Adding labels during workspace creation
Labels are optional but can be added during workspace creation to help organize and categorize your workspaces from the start.

To add labels when creating a workspace:
-
In the create workspace form, locate the Labels section below the description field
-
Click the
MANAGE LABELSbutton -
Enter your label in the label input fields:
- Key: The label identifier (e.g.,
environment,team,cost-center) - Value: The label data (e.g.,
production,platform,engineering)
- Key: The label identifier (e.g.,
-
Review your labels in the list below the input field. You can remove any label by clicking the delete icon next to it
-
Click the
SAVE CHANGESbutton to add the label(s) to the workspace -
Click
CREATE WORKSPACEto create the workspace with the specified labels
Example: Creating a workspace with labels
When creating a production API workspace, you might add these labels:
environment=productionteam=platformapp=api-servercost-center=engineering
Labels are completely optional during workspace creation. You can create a workspace without any labels and add them later. However, adding labels during creation helps establish good organizational practices from the start.
Modifying labels on an existing workspace
To modify labels on a workspace that already exists:
-
From the workspace details page, click
Settingsto open the workspace settings -
In the Labels section, locate and click the
MANAGE LABELSbutton -
Enter your new label in the form:
- Key: The label identifier (e.g.,
team,cost-center,version) - Value: The label data (e.g.,
platform,engineering,v2-1-0)
- Key: The label identifier (e.g.,
-
Review your labels in the list below the input field. You can remove any label by clicking the delete icon next to it
-
Click the
SAVE CHANGESbutton to modify the label(s) for the workspace

Example: Adding labels to an existing workspace
If you have a workspace that was created without labels, you might add:
environment=productionto indicate it's a production workspaceteam=platformto show ownershipcost-center=engineeringfor cost tracking
Example: Updating a label value
To change an environment label from staging to production:
- Remove the existing label:
environment=staging - Add the updated label:
environment=production
When you update a label value through the UI, you're replacing the old value with a new one for the same key. The workspace will only have one value per label key. If you need to track multiple values, consider using different label keys (e.g., primary-team and secondary-team).
Example: Removing obsolete labels
If a workspace is no longer part of a specific project, you might remove:
project=customer-migration(project completed)temporary=true(no longer temporary)
You can remove all labels from a workspace if needed. Simply delete each label and update the workspace. The workspace will function normally without any labels, though you may lose organizational benefits that labels provide.
- Review labels regularly: Periodically review workspace labels to ensure they remain accurate and relevant
- Update labels when roles change: If workspace ownership or purpose changes, update labels accordingly
- Remove obsolete labels: Clean up labels that no longer apply to avoid confusion
- Use consistent values: When updating labels across multiple workspaces, use consistent values (e.g., always use
productioninstead of mixingprod,production, andprd)
The UI will only validate whether any field is empty or if there are duplicate keys. The label constraints will be validated in the API before allowing you to add them.
Remember that you can add up to 10 labels per workspace. See Workspace Label Constraints for detailed information about label formatting rules and limitations.