Modules
The modules descriptor: reusable infrastructure modules.
The modules descriptor defines the repository area for reusable
infrastructure modules local to the repository. Modules hold composable
implementation details; deployable roots in env and workspaces compose
them with concrete deployment wiring and configuration.
When to introduce it
Add a modules directory when a repository has infrastructure that more than
one deployment target will use — for example, Terraform modules shared
between an environment root and a developer workspace.
Rules
- Keep modules small, focused, and reusable across environments and workspaces.
- Keep provider requirements explicit.
- Prefer clear inputs and outputs over implicit environment assumptions.
- Avoid embedding deployment-specific names, tiers, or account details.
- Do not commit module-local state files, provider plugin directories, or local cache output.
- Avoid module lock files unless the module is also a standalone deployable root.
Source: descriptors/modules/README.md
Revised: December 2026.