We are using an SNS topic that is shared through enterprise for different project and it has to be that way, but with everyone using that SNS topic in cloudwatch alarms. we get email notifications for all the alarms which we dont want, we want to receive the notifications for just our alarms.
the solution could be to add a filter on the subscription but the message coming from cloudwatch alarm doesn't have any message attributes on which we can put the filter. Can anyone please suggest a solution for the problem or let me know if there is a way to add the custom message attributes based on which we can filter.
It is not possible to filter messages that come from CloudWatch. I had the same issue recently. In order to filter messages in SNS the topic, it must have appropriate Message Attributes.
What you can do is this: