Interview Prep/Terraform/State and Backends in Production

How do you split a monolithic state and what drives blast-radius decisions?

AdvancedProductionState and Backends in Production
Answer

Blast radius is "what can one bad apply or lost state damage". Split along change frequency and ownership: foundation (accounts, IAM), network, data stores, compute, app. To split, move resources with terraform state mv -state-out, or declare removed blocks in the old stack and import blocks in the new one, and verify both plans are empty. Do it during a change freeze and keep the old state backed up.

All Terraform questions Roadmap: Terraform in production

More on State and Backends in Production