Organizing HCP Terraform Workspaces and Projects
Unlock the complete study guide + 1,040 practice questions across 16 full exams.
Bundled into the existing HashiCorp Certified: Terraform Associate premium course — no separate purchase.
14-day money-back guarantee — no questions asked.
Included in this chapter:
- Organizations, projects, and workspaces
- HCP workspaces are not CLI workspaces
- Workspace settings: execution mode and apply
- Locking and state history
- Sharing outputs and chaining workspaces
- How the exam tests workspace organization
HCP Terraform workspace vs Terraform CLI workspace
| Aspect | HCP Terraform workspace | Terraform CLI workspace |
|---|---|---|
| What it is | A separate managed environment in an organization | An alternate named state within one working directory |
| Configuration | Its own configuration, from VCS, CLI, or API | Shares the directory's single configuration |
| State | Own remote state with retained version history | A distinct state file sharing the directory's backend |
| Variables and runs | Own workspace variables and full run history | None of its own; shares the directory's setup |
| Isolation | Fully isolated from other workspaces | Non-overlapping resources, same config and backend |
| How selected | Named in the cloud block, backend, or the UI | Chosen with terraform workspace select NAME |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.