Skip to content

Instantly share code, notes, and snippets.

@jtroberts83
Created September 6, 2019 02:25
Show Gist options
  • Save jtroberts83/fe4bed1c37c96ebe6688b9f934d532ac to your computer and use it in GitHub Desktop.
Save jtroberts83/fe4bed1c37c96ebe6688b9f934d532ac to your computer and use it in GitHub Desktop.
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