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.
More on HCP Terraform, OpenTofu, Scale and Cost
How do you design workspaces and projects in HCP Terraform?IntermediateWhat execution modes does HCP Terraform offer?BeginnerWhat are the three run workflows in HCP Terraform?BeginnerHow are variable sets and sensitive variables used?BeginnerHow is HCP Terraform priced, and how does it affect design?IntermediateHow do you choose between HCP Terraform, Atlantis, Spacelift and plain GitHub Actions?Advanced