Interview Prep/Terraform/Repository Structure, Environments and Module Strategy

How should a module repo be organised?

BeginnerProductionRepository Structure, Environments and Module Strategy
Answer

Root module files at top level, examples/basic and examples/complete that actually run in CI, tests/ for .tftest.hcl files, optional modules/ submodules, README generated by terraform-docs and a CHANGELOG. Examples double as documentation and integration tests.

All Terraform questions Roadmap: Terraform in production

More on Repository Structure, Environments and Module Strategy