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.
More on Repository Structure, Environments and Module Strategy
Monorepo or multi-repo for Terraform?BeginnerHow do you lay out environments in a repo?BeginnerWhen would you adopt Terragrunt?BeginnerDo you use tfvars files per environment or code branches?IntermediateHow do you promote a module change from dev to qa to prod?AdvancedWhat is an internal module registry strategy?Beginner