Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNS Filters not honoring Message Body Filter #82

Open
wilsondy opened this issue Mar 24, 2023 · 0 comments
Open

SNS Filters not honoring Message Body Filter #82

wilsondy opened this issue Mar 24, 2023 · 0 comments

Comments

@wilsondy
Copy link

The following snippet behaves differently between local stack and aws:

 topic.addSubscription(
          new SqsSubscription(queue, {
            filterPolicyWithMessageBody: {
              eventType: sns.FilterOrPolicy.filter(
                sns.SubscriptionFilter.stringFilter({
                  allowlist: [...listener.getEventTypes()],
                })
              ),
            },
          })

sns get-subscription-attributes:
In AWS via CDK:
"FilterPolicyScope": "MessageBody",
via CDKLocal:
"FilterPolicyScope": "MessageAttributes"

Env:
Node 16.15.1 + "aws-cdk-lib": "2.68.0",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant