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

Add support for publishing SNS messages on fifo topics

Open Pascal-Architrave opened this issue 1 year ago • 2 comments

Summary

I am trying to publish a message to a fifo SNS topic, but it fails because it is missing the required MessageGroupId parameter. Unfortunately the parameter is not available in the sns module. Adding the possibility to add this parameter would be helpful for everyone, because it would be possible to publish messages to FIFO SNS topics, too.

Issue Type

Feature Idea

Component Name

sns

Additional Information

    - name: "Send message to fifo sns topic"
      community.aws.sns:
          msg: "Some message"
          topic: "some_sns_topic"
          subject: "Some subject"
          message_group_id: "foo-bar-1"

Link to boto3 documentation: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sns.html?highlight=sns#SNS.Client.publish

Code of Conduct

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

Pascal-Architrave avatar Feb 15 '23 15:02 Pascal-Architrave