2 Answers
- Newest
- Most votes
- Most comments
0
Works if SNS subscription is EMAIL-JSON Protocol. Can filter using the “message body” policy scope.
ex: { "AlarmName": [ "IAM_Policy_Changes_Alarm", "No_MFA_Console_Signin_Alarm", "Config_Changes_Alarms" ] }
answered 2 years ago
0
Yes. You can now use payload-based message filtering for SNS subscriptions. Based on these sample CW alarms https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch-and-eventbridge.html you can easily set up alarm arn based payload filtering like
{"resources":["give your alarm arn here"]}
answered 2 years ago
Relevant content
- asked 6 months ago
- asked 6 months ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 12 days ago
- AWS OFFICIALUpdated 9 months ago
tried, but didn't work. wasn't able to get any messages after applying a policy with that code
Can you post the event which is getting fired by CW as a result of alarm ? Does it have resources field in it ??
How can I view the events getting fired by CW?