Interview Prep/Terraform/State and Backends in Production

How do you protect state against region loss or accidental deletion?

AdvancedProductionState and Backends in Production
Answer

Versioning plus cross-region replication of the bucket, MFA delete or an Object Lock retention for the most critical states, deny-delete bucket policies, and periodic restore tests. Keep the KMS key multi-region or ensure replicated data can be decrypted in the DR region. A backup nobody has restored is only a hope.

All Terraform questions Roadmap: Terraform in production

More on State and Backends in Production