Skip to content

Instantly share code, notes, and snippets.

@kapilt
Last active June 25, 2019 15:52
Show Gist options
  • Select an option

  • Save kapilt/38d5cb7de71e282f8c269bc0237dc7fd to your computer and use it in GitHub Desktop.

Select an option

Save kapilt/38d5cb7de71e282f8c269bc0237dc7fd to your computer and use it in GitHub Desktop.
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