Imported from zelikore/infrastructure-as-words (
infra/AGENTS.md). Install upstream withnpx skills add zelikore/infrastructure-as-words --skill infra. Copyright stays with the author.
Infra Handbook
infra/ contains Terraform roots, reusable modules, module metadata, typed env
config, and the scripts that render deploy-time variables.
Rules
- Prefer module changes over adding more logic directly in environment roots.
- Keep shared auth separate from app environments unless a change genuinely belongs to an environment.
- Document module behavior in
README.mdandmodule-metadata.jsonwhenever a module contract changes. - Add or update
*.tftest.hclcoverage when module behavior changes. - Keep IAM least-privilege. Avoid wildcard permissions.
- Keep runtime-sensitive configuration in SSM and thread the parameter name/ARN through Terraform intentionally.
- Run
npm run validate:infraafter Terraform changes. - Use
terraform fmtthrough the repo scripts or workspace scripts; do not hand-format HCL inconsistently.