serverless-offline-sns icon indicating copy to clipboard operation
serverless-offline-sns copied to clipboard

Support for subsciption filter policy from SNS->SQS

Open colesiegel opened this issue 2 years ago • 2 comments

Hi,

Are subscription filter policies supported by this plugin?

I see some reference to FilterPolicy in the codebase but it is not documented in the README. Is it possible to provide some documentation on how to configure subscription filter policies with serverless-offline-sns?

colesiegel avatar Jan 31 '23 14:01 colesiegel

@mj1618

ajejoseph22 avatar Jan 31 '23 15:01 ajejoseph22

Looking at the function evaluatePolicies in sns-server.ts it looks like filter policies are supported, but only for the scope MessageAttributes.

Would be nice to support the scope MessageBody too, set through the attribute FilterPolicyScope

lodemo avatar Nov 30 '23 12:11 lodemo