Created
November 18, 2020 15:37
-
-
Save satvan23/e6f4db73bf5af36cfd7a8a0d13716f3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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