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.
it seems like it is not support in cloudformation.