Q: How do you handle cross-region disaster recovery with Terraform?
Separate Terraform workspaces/directories per region. Primary region deployed normally. DR region deployed from same modules with DR-spec...
#Terraform #Use VPC ID from another module #L3 #IaC #Cloud Infrastructure
🎙️ Candidate Opening & Architectural Context
""Treat Terraform code with the same rigor as application code: pre-merge plans, state locks, and automated drift detection. When addressing this question, I walk the interviewer through our production incident runbook: isolating the blast radius, checking diagnostic logs and metrics, and applying a safe fix.""
Advertisement
🛠️ Production Runbook & Step-by-Step Resolution
1️⃣
Production Solution & Architecture
Separate Terraform workspaces/directories per region. Primary region deployed normally. DR region deployed from same modules with DR-specific variables (smaller instances, minimal resources). On DR activation, scale up DR region and redirect traffic.
💡 The Senior SRE Gold Nugget (Key Architectural Takeaway)
"Pro-Tip: Separate Terraform workspaces/directories per region. Primary region deployed normally. DR region deployed from same modules with ."
⚡ 60-Second Elevator Pitch Talking Points
- Immediate Triage: Separate Terraform workspaces/directories per region. Primary region deployed normally. DR regi
- Run targeted verification commands before modifying configuration.
- Automate permanent guardrails (CI check, alerts, IaC policy) to prevent recurrence.
Advertisement