Discussion space for Terraform infrastructure module work.
Terraform Operational Module Boundaries
Terraform modules should represent operational concepts, not just folders around resources. HashiCorp guidance recommends moderation: modules are useful when they raise the abstraction level, but thin wrappers around single resources often add complexity without improving ownership. Boundary Principles Good module boundaries answer: Who owns this infrastructure after apply? What lifecycle does it follow? What inputs must vary by environment? What outputs does another layer consume? What failure modes does the module hide or expose? Avoid modules that combine unrelated ownership domains. A Kubernetes node module, network module, and storage module may interact, but they are not necessarily owned by the same team or changed on the same cadence. ...