Subscribe sqs to sns with filter policy

How can we subscribe sqs to sns with filter policy in serverless framework or cloudformation?

Applying Subscription Filter Policies
You can apply a filter policy to an Amazon SNS subscription by using the Amazon SNS console. Or, to apply policies programmatically, you can use the Amazon SNS API, the AWS Command Line Interface (AWS CLI), or any AWS SDK that supports Amazon SNS, such as the AWS SDK for Java.

https://docs.aws.amazon.com/sns/latest/dg/message-filtering.html

it seems like it is not support in cloudformation.

1 Like

It is supported now in cloudformation

However, It is now supported yet in serverless. You may consider this plugin: serverless-sns-filter - npm

1 Like

was this issue ever fixed? subscribe sqs queue to sns topic with filter policy from serverless.yaml?

1 Like