• Docs
  • Common Use Cases
  • Security
  • Separate Controls per Directory

Separate Controls per Directory

Define separate policies per directory.

dirs:
  aws/qa:
    tags: [aws, qa]
  aws/production:
    tags: [aws, production]
access_control:
  policies:
    - tag_query: aws qa
      plan: ['*']
      apply: ['*']
    - tag_query: aws production
      plan: ['*']
      apply: ['team:sre']