Ravi Sir's Cards › AWS
SNS filter policy
This revision card explains SNS filter policy. It starts from the need that billing wants only payment events. It describes publish with message attributes. The how-to section covers how to set FilterPolicy on the subscription. An example on the card is non-matching messages are skipped.
Read card text
What this card says
Why do we need it?
Billing wants only payment events.
What is it?
Publish with message attributes.
--message-attributes
How to do it
Set FilterPolicy on the subscription.
set-subscription-attributes
Example
Non-matching messages are skipped.