Interview Prep/Terraform/Repository Structure, Environments and Module Strategy

How would you orchestrate applies for 80 stacks?

AdvancedProductionRepository Structure, Environments and Module Strategy
Answer

Use an orchestrator rather than hand-scripting: Terragrunt run-all with a dependency graph, Spacelift stack dependencies, HCP Terraform run triggers or a CI matrix generated from a dependency file. Plan everything on PR, apply in topological order on merge, limit concurrency and halt on first failure. Observability matters: one dashboard of last-run status per stack.

All Terraform questions Roadmap: Terraform in production

More on Repository Structure, Environments and Module Strategy