When should you not write a module?

IntermediateConceptModules
Answer

When it would be a thin wrapper around a single resource that exposes every argument of that resource; it adds a layer without adding policy or abstraction. A good module encodes opinions, hides repetition and has a small interface. Use modules for patterns (VPC with subnets and routes, service with ALB and ASG), not for one-to-one renaming.

All Terraform questions Roadmap: Terraform

More on Modules