Interview Prep/Terraform/State and Backends in Production

What symptoms tell you a state is too large?

IntermediateProductionState and Backends in Production
Answer

Plans taking tens of minutes (thousands of refresh API calls), API throttling errors, 10 MB+ state JSON, lock held for long periods and a diff review that nobody can read. Fix by splitting states, pruning no-longer-needed resources, using modules with for_each sparingly at scale and increasing -parallelism only if the API tolerates it.

All Terraform questions Roadmap: Terraform in production

More on State and Backends in Production