Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mechastorm/a9547d808c3ca5962bebc7b73f421797 to your computer and use it in GitHub Desktop.
Save mechastorm/a9547d808c3ca5962bebc7b73f421797 to your computer and use it in GitHub Desktop.
Auto tag Owner if tag does not exist
policies:
- name: ec2-auto-tag-owner
mode:
type: cloud-trail
events:
- CreateInstance
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