intermediate~3h
Terraform Workspaces and Environments
Three different strategies for managing dev/staging/prod with Terraform — workspaces, separate state files, and separate directories — and the real tradeoffs between them.
Learning objectives
- Intermediate: Use Terraform workspaces to manage multiple environments from one set of configuration files.
- Intermediate: Compare workspaces against separate state files and separate directories per environment.
- Advanced: Choose the right environment-management strategy based on how much an organization's environments actually differ from each other.
This is a Pro chapter
Sign in, then upgrade to Pro or Power to unlock this and the full DevOps Mastery library.
Terraform Workspaces and Environments