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

Monorepo or multi-repo for Terraform?

BeginnerProductionRepository Structure, Environments and Module Strategy
Answer

A monorepo makes cross-stack changes, shared modules and consistent tooling easy, but needs path-filtered pipelines and CODEOWNERS. Multi-repo gives clear ownership and independent versioning but invites drift between repos. We usually use a modules repo (versioned via tags) plus one live-infrastructure repo per team or domain, whichever fits the org's size.

All Terraform questions Roadmap: Terraform in production

More on Repository Structure, Environments and Module Strategy