Interview Prep/Terraform/HCP Terraform, OpenTofu, Scale and Cost

How would you rebuild an entire region from code after a disaster?

AdvancedProductionHCP Terraform, OpenTofu, Scale and Cost
Answer

Order matters: foundation (accounts, IAM, KMS, network), then data layers (restore from cross-region backups, since Terraform does not restore data), then compute and apps, then DNS cutover. Things that break the "just re-apply" story: secrets that were never in code, state in the lost region, manually created resources, hardcoded AZs and AMI IDs. We rehearse it with game days and keep state and backups in another region.

All Terraform questions

More on HCP Terraform, OpenTofu, Scale and Cost