s12v / sns

Fake Amazon SNS
https://hub.docker.com/r/s12v/sns/
Apache License 2.0
126 stars 40 forks source link

RawMessageDelivery support #37

Open eugenekuchera opened 6 years ago

eugenekuchera commented 6 years ago

Hi. Would be nice to support RawMessageDelivery for subscriptions. http://docs.aws.amazon.com/sns/latest/dg/large-payload-raw-message.html Any plans for this? Thanks.

Etherdaemon commented 4 years ago

Saw this was still open - I can confirm you can enable it by setting the subscription config to have the RawMessageDelivery attribute to true.

{
  "version": 1,
  "timestamp": 1465414804110,
  "subscriptions": [
    {
      "arn": "e9126059-9eab-4b37-8194-e0d64dfb2045",
      "topicArn": "arn:aws:sns:ap-southeast-2:1234567890123:device-telemetries",
      "endpoint": "aws-sqs://telemetries-post-processing?amazonSQSEndpoint=http://fakesqs:9324&accessKey=&secretKey=",
      "owner": "",
      "protocol": "sqs",
      "subscriptionAttributes": {
        "RawMessageDelivery": "true"
      }
    }
  ],
  "topics": [
    {
      "arn": "arn:aws:sns:ap-southeast-2:1234567890123:device-telemetries",
      "name": "device-telemetries"
    }
  ]
}
jameskbride commented 10 months ago

Hello and apologies for the self-advertisement, I've created local-sns as a reimplementation of this project, which includes RawMessageDelivery support. See https://github.com/jameskbride/local-sns/issues/21 for more details.