What is the standard module layout?
BeginnerConceptModules
Answer
main.tf, variables.tf, outputs.tf, versions.tf, a README.md, an examples/ folder showing usage and optionally modules/ for submodules and tests/. The registry publishing convention is the same, and tools like terraform-docs and tflint assume it.
More on Modules
What is a Terraform module and why use one?BeginnerHow do you call a module?BeginnerHow do inputs and outputs work with modules?BeginnerWhich module source types exist and where does `version` apply?IntermediateHow should you version and pin modules?IntermediateCan you use `count` and `for_each` on modules?Intermediate