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.
More on State and Backends in Production
Why should Terraform state never be committed to Git?BeginnerHow do you bootstrap the remote backend, given the bucket must exist before Terraform can use it?IntermediateWhat does a hardened S3 state bucket look like?IntermediateWhat is the minimum IAM permission set for the S3 backend?IntermediateHow do you move from DynamoDB locking to S3 native locking in a live fleet?IntermediateState was deleted or corrupted. How do you recover?Advanced