serverless-offline-sns
serverless-offline-sns copied to clipboard
Support for subsciption filter policy from SNS->SQS
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
?
@mj1618
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