Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mechastorm/2e379788e5f56239d5f32d9cb98c420a to your computer and use it in GitHub Desktop.
Save mechastorm/2e379788e5f56239d5f32d9cb98c420a to your computer and use it in GitHub Desktop.
Correct Custodian Policy that validates correctly
policies:
- name: ec2-auto-tag-owner
resource: ec2
mode:
type: cloudtrail
events:
- RunInstances
filters:
- "tag:Owner": absent
actions:
- type: auto-tag-user
tag: OwnerContact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment