grafclouds.com / documents / training / devops-challenges / terraform-monolith-blast-radius

One Giant Terraform State Runs Everything

Advanced ~15 min read
Terraform

Scenario

Every piece of your cloud estate — networking, IAM, databases, Kubernetes clusters, application resources across environments — lives in one Terraform root module with one state file. A terraform plan takes ten minutes because it refreshes hundreds of resources, and the output is a wall of text where the one change you made hides among provider-side noise. Engineers have started avoiding infrastructure changes altogether, because a typo in an app-level variable can, in principle, produce a plan that touches the production database. Changes queue up, then land in big risky batches — exactly the pattern the avoidance was trying to prevent.

When the pain comes up in retro, a teammate suggests keeping the structure as-is: "The state works. We just need to be more careful — read every plan line by line, and only seniors apply." Restructuring state sounds risky, and nobody wants to be the person who broke prod moving it.

The Quick Fix on the Table

Keep the monolithic state and add process: mandatory plan reviews, senior-only applies, more caution. It requires zero engineering work up front and feels responsible — vigilance as architecture.

Interview · Round 1

The quick fix is on the table and the room is waiting for your call. Would you sign off on it? Take a position and justify it — out loud or on paper — before revealing the analysis.