
- Linked Version Control System (VCS) repository for configuration
- Workspace-level variables (plaintext and sensitive)
- Remote, managed state storage
- Historical run logs, cost estimation, governance, and notifications
Table of Contents
- Key Components
- Units of Isolation
- Real-World Example: Airline Corporation
- Reducing the Blast Radius
- Naming Conventions
- Workspace Settings
- Execution Modes
- Getting Started
- References
Key Components of a Workspace
| Component | Description | Benefits |
|---|---|---|
| Remote State | Stores Terraform state files centrally in Terraform Cloud. | Secure, shareable state with version history |
| Variables | Define environment-specific or secret values in the workspace UI or via API. | Centralized management of sensitive data |
| Operations & Logs | Execute plan, apply, and destroy remotely or locally, with complete run history. | Audit trail, notifications, and collaboration |
Units of Isolation
Workspaces act as isolated directories, each maintaining its own state. This decomposition reduces risk by preventing unintended cross-environment changes:
- App → Dedicated workspace
- Network → Shared workspace
- Database → Separate workspace
Real-World Example: Airline Corporation
An airline might organize by application tier and environment:
| Component | Environments |
|---|---|
| Front End | dev, qa, prod |
| Back End | dev, qa, prod |
| Networking | shared network services |
Reducing the Blast Radius
Combining multiple environments in one state file risks cross-environment side effects. By isolating Dev, QA, and Prod in separate workspaces, changes in QA can never impact Prod:
qa and prod workspaces:

Naming Conventions
Consistent workspace names simplify filtering, access control, and governance. Include:- Application or component
- Environment (e.g.,
dev,qa,prod) - Region or cloud provider
- Team or project prefix
| Naming Pattern | Example |
|---|---|
<app>-<env> | ecom-web-prod |
<team>-<app>-<env> | adt-mobile-qa |
<app>-<region>-<env> | ecom-usw1-prod |
Workspace Settings
Each workspace offers granular settings:- Terraform version selection
- Run history, logs, and cost estimates
- Role-based access control (RBAC)
- Notifications (email, Slack, webhook)
- Governance & policy checks via Sentinel or OPA
Execution Modes
Terraform Cloud supports two modes for running operations:Local Execution
Run Terraform commands on your workstation, but store state remotely in Terraform Cloud. Ideal for minimal workflow changes:
Remote Execution
All operations execute within Terraform Cloud’s infrastructure, centralizing runs, logs, and policies:
To enable policy enforcement, advanced cost estimation, and team management, consider upgrading your Terraform Cloud plan.

Getting Started with Terraform Cloud
Add abackend or cloud block in your terraform configuration, then initialize:
You can also configure workspaces via the Terraform Cloud API or the
tfe provider.By leveraging Terraform Cloud Workspaces, you can clearly separate environments, enforce policy and governance, and scale collaborations across teams. Choose a naming convention, select the execution mode that fits your workflow, and get full visibility into your infrastructure changes.