Last active
June 25, 2019 15:52
-
-
Save kapilt/38d5cb7de71e282f8c269bc0237dc7fd to your computer and use it in GitHub Desktop.
This file contains hidden or 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: SendNotification | |
| resource: aws.ecr | |
| mode: | |
| type: cloudtrail | |
| environment: | |
| Variables: | |
| C7N_SKIP_EVTERR: no | |
| role: Jak-cloud-custodian-role | |
| events: | |
| - source: ecr.amazonaws.com | |
| event: DeleteRepository | |
| ids: requestParamaters.repositoryName | |
| filters: | |
| - repositoryName: myRepository | |
| actions: | |
| - type: notify | |
| transport: | |
| type: sqs | |
| queue: my_queue_url | |
| to: | |
| - event-user | |
| - resource-creator | |
| - email@address |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment