Dude where's my state file? Adventures with Infrastructure as Code
summary
A real incident details how a blank provisioning parameter causes a Google Cloud VMware Engine subscription to default to a fixed-term with automatic deletion, wiping resources across replicated geographies and impacting 620,000 members for over a week. Practical fixes shown include keeping Terraform state file in a versioned bucket, enforcing deletion protection on critical resources, splitting state by environment, using reviewed pipelines, linters like TFlint, and treating drift as a process to detect and reconcile.
AI-written summary · about
chapters (12)
- 0:00Introduction and agenda
- 1:33Speaker introduction
- 2:37Case study: UniSuper outage
- 10:00Infrastructure as Code overview
- 15:14Terraform basics and modules
- 15:35Anti-pattern 1: Check your defaults
- 21:13Anti-pattern 2: Infrastructure drift
- 24:25Anti-pattern 3: Bad state management
- 27:57Anti-pattern 4: Readability and structure
- 33:54Anti-pattern 5: Confusing config
- 38:27Summary and best practices
- 40:14Q&A session
