1 Resposta
- Mais recentes
- Mais votos
- Mais comentários
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
respondido há um ano
Conteúdo relevante
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há 2 meses
- AWS OFICIALAtualizada há 2 anos
- AWS OFICIALAtualizada há 4 anos