Your Terraform State File Size Is Your Blast Radius
The size of your Terraform state file often determines your infrastructure blast radius. ๐ฅ
Many Terraform setups start with a single state managing a large portion of the infrastructure. It feels convenient.
But as the infrastructure grows, the state file quietly becomes a bottleneck. Large state files slow down terraform plan and apply, but the bigger problem is coupling. A small change to one component now requires locking and evaluating the entire state.
Teams that should move independently now depend on each other's Terraform runs.
There is also a hidden risk: blast radius. When too many resources live in the same state, a mistake in one part of the infrastructure can affect completely unrelated systems. A change meant for a small service can trigger updates across networking, databases, or shared infrastructure.
A stronger pattern is to treat Terraform state as a system boundary.
๐ Split state by logical ownership - networking, core platform infrastructure, data systems, and individual service stacks. Smaller states reduce lock contention, improve change velocity, and most importantly limit the impact of mistakes.