Q: How do you manage Terraform infrastructure across 50 AWS accounts in an AWS Organization?
Use a CI/CD system per account (GitHub Actions with OIDC, separate role per account). Shared modules in a central registry. Terragrunt or...
#Terraform #Use VPC ID from another module #L3 #IaC #Cloud Infrastructure #Git
🎙️ Candidate Opening & Architectural Context
""In our enterprise Terraform repository, we designed reusable modules and remote backends to prevent this exact issue. 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
Use a CI/CD system per account (GitHub Actions with OIDC, separate role per account). Shared modules in a central registry. Terragrunt or Terraform Cloud for orchestration. Account vending machine (Control Tower) creates new accounts pre-wired for Terraform.
💡 The Senior SRE Gold Nugget (Key Architectural Takeaway)
"Pro-Tip: Use a CI/CD system per account (GitHub Actions with OIDC, separate role per account). Shared modules in a central registry. Terrag."
⚡ 60-Second Elevator Pitch Talking Points
- Immediate Triage: Use a CI/CD system per account (GitHub Actions with OIDC, separate role per account). Shared mo
- Run targeted verification commands before modifying configuration.
- Automate permanent guardrails (CI check, alerts, IaC policy) to prevent recurrence.
Advertisement