Should you use HCP Terraform or an S3 backend for state?
BeginnerScenarioState Backends and Workspaces
Answer
Situation read → A build-versus-buy decision for a small team.
What I'd do →
- S3 (or GCS, Azure Blob): cheap, simple, and you own the pipeline.
- HCP Terraform: remote runs, state locking, RBAC, policy, private registry and SSO out of the box, at a per-resource price.
- Pick HCP if you'd otherwise build runs, approvals and policy yourself.
Why → It's about operational effort and governance needs rather than technical capability.
Interview tip → Also mention OpenTofu with an S3 backend as a licence-free path.
More on State Backends and Workspaces
Two engineers keep overwriting each other's changes because state is local. What's the fix?BeginnerSet up a production-grade S3 backend. What do you configure for locking?IntermediateHow do you harden the S3 bucket that holds Terraform state?IntermediateWho creates the state bucket itself, given Terraform needs it to exist before `init`?IntermediateA laptop apply and a CI apply start at the same time. What stops state corruption?IntermediateWhen are Terraform workspaces appropriate?Beginner