Terraform state — the file that breaks everything
More Terraform projects fail because of state misconfiguration than for any other reason. We cover remote state, locking, workspaces, state surgery, and the recovery patterns we've used to save real client deployments.
- · Why local state is a footgun and how to migrate to S3 + DynamoDB locking
- · State workspaces vs directory-per-environment — pros and cons
- · Importing existing infrastructure: terraform import vs Terraformer
- · State surgery: terraform state mv / rm / push — when and how
- · Disaster recovery when state is corrupted or out of sync