Skip to content

Instantly share code, notes, and snippets.

@satvan23
Created November 18, 2020 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save satvan23/e6f4db73bf5af36cfd7a8a0d13716f3c to your computer and use it in GitHub Desktop.
Save satvan23/e6f4db73bf5af36cfd7a8a0d13716f3c to your computer and use it in GitHub Desktop.
policies:
- name: satish-ec2-tag-check-notify
region: us-east-2
description: |
notify Owner if 4 tags as below are not added.
resource: ec2
mode:
type: periodic
schedule: "cron(0/10 * ? * * *)"
role: arn:aws:iam::12345:role/custodian-generic-role
filters:
- and:
- tag:bax-ctime: present
- tag:Appid: absent
- tag:Appname: absent
- tag:Owner: absent
- tag:Name: absent
- type: state-age
op: ge
days: 1
actions:
- type: notify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment