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 a year 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 a year ago
Relevant content
- Accepted Answerasked 6 months ago
- Generate specific parameters to appear in SNS email notification in CloudWatch Alarm for a Log GroupAccepted Answerasked a year ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated a month 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?