community.aws icon indicating copy to clipboard operation
community.aws copied to clipboard

SNS Topic Subscription filter_policy

Open citrocity opened this issue 2 years ago • 1 comments

Summary

Similar issue was opened in the old project by @bcarpio https://github.com/ansible/ansible/issues/51756 but was closed due to the migration of the project.

SNS Topic (sns_topic) in Ansible supports subscriptions but it doesn't seem to support subscription filter_policies.

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

Issue Type

Feature Idea

Component Name

community.aws.sns_topic

Additional Information

This feature is important so messages sent to the SNS topic subscriber (Lambda, SQS, etc..) are filtered at the AWS level before it reaches the code or queue subscribed to the topic.

  subscriptions:
    - endpoint: "{{ aws_lambda_result.configuration.function_arn}}"
       protocol: lambda
       filter_policy:
         attribute_a:
           - value_1
           - value_2
         attribute_b:
           - value_3

Code of Conduct

  • [X] I agree to follow the Ansible Code of Conduct

citrocity avatar Apr 21 '22 09:04 citrocity

Files identified in the description:

  • [lib/ansible/plugins/filter](https://github.com/['ansible-collections/amazon.aws', 'ansible-collections/community.aws', 'ansible-collections/community.vmware']/blob/main/lib/ansible/plugins/filter)

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

ansibullbot avatar Apr 21 '22 09:04 ansibullbot