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.

All Terraform questions Roadmap: Terraform

More on Modules