1 Answer
- Newest
- Most votes
- Most comments
0
We would have to use a custom event pattern in order to get notifications just for getting alerts when a backup job failed and aborted.
- Create an event pattern and use below customer Pattern using Json editor. { "source": ["aws.backup"], "detail-type": ["Backup Job State Change"], "detail": { "state": ["FAILED", "ABORTED"] } }
- Create SNS topic and add the below statement to the Access policy. Modify the Resource name with your SNS topic { "Sid": "My-statement-id", "Effect": "Allow", "Principal": { "Service": "backup.amazonaws.com" }, "Action": "SNS:Publish", "Resource": "arn:aws:sns:eu-west-1:111111111111:exampletopic" }
- There is no need to use any subscription filtering policy with this event bridge pattern.
- Once the SNS created do not forget to confirm the subscription.
- Once the subscription confirmed, create a backup and abort it and create another backup job such that it get fails.
- You should see only email alerts for failed backup job and aborted backup job
answered 2 years ago
Relevant content
- asked 3 years ago
- asked 8 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago