Structuring a Policy as Code Repo
Example only
Review and validate before production use. All values below are placeholders.
Goal¶
Create a repository structure that separates policy definitions, initiatives, assignments, and exemptions.
Recommended layout¶
Design notes¶
- Keep policy JSON files in
definitions/and version them clearly. - Bundle related definitions into initiatives in
initiatives/. - Store environment-specific assignment parameters under
assignments/. - Track temporary exemptions with expiry metadata in
exemptions/. - Validate JSON and run deployment checks in
pipelines/.