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

What makes a module a "god module", and how do you avoid it?

AdvancedProductionRepository Structure, Environments and Module Strategy
Answer

One module that creates VPC, cluster, database, DNS and monitoring with 100 variables, where any change risks everything and nobody can reuse a piece. Avoid by composing small modules with narrow interfaces, passing IDs between them, limiting variables to real decisions, and keeping lifecycle-different things (data stores versus stateless compute) in different modules and often different states.

All Terraform questions Roadmap: Terraform in production

More on Repository Structure, Environments and Module Strategy