All,
I want a policy that only retrieves ACTIVE access keys that are older than 90 days and notify them periodically.
policies:
- name: iam-user-access-keys-older-than-90days
description: |
Retrieve all IAM users whom have active access keys that are older than 90days
resource: iam-user
filters:
- type: access-key
key: Status
value: Active
- type: access-key
key: CreateDate
value: 90
op: greater-than
value_type: age
First notification should be sent before 15 days, second notification before 7 days and after every day until expiration date