Created
September 6, 2019 02:25
-
-
Save jtroberts83/fe4bed1c37c96ebe6688b9f934d532ac 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: eks-mark-waiting | |
mode: | |
type: periodic | |
schedule: "rate(10 minutes)" | |
packages: | |
- botocore | |
- boto3 | |
- urllib3 | |
- certifi | |
resource: eks | |
filters: | |
- "tag:Waiting_Status": absent | |
- type: value | |
key: status | |
op: eq | |
value: "WAITING" | |
actions: | |
- type: mark-for-op | |
tag: Waiting_Status | |
op: notify | |
hours: 2 | |
- name: eks-find-waiting-2-hours | |
mode: | |
type: periodic | |
schedule: "rate(10 minutes)" | |
packages: | |
- botocore | |
- boto3 | |
- urllib3 | |
- certifi | |
resource: eks | |
filters: | |
- "tag:Waiting_Status": present | |
- type: value | |
key: status | |
op: eq | |
value: "WAITING" | |
- type: marked-for-op | |
tag: Waiting_Status | |
op: notify | |
actions: | |
......Take some action here..... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment