Amazon Simple Notification Service
Developer Guide

Amazon SNS Large Payload and Raw Message Delivery

Amazon SNS (and Amazon SQS) allows you to send large payload messages (from 64 to 256 kilobytes in size). To send large payloads, you must use an AWS SDK that supports Signature Version 4.

In addition to sending large payloads, with Amazon SNS you can now enable raw message delivery for messages delivered to either Amazon SQS endpoints or HTTP/S endpoints. This eliminates the need for the endpoints to process JSON formatting, which is created for the Amazon SNS metadata when raw message delivery is not selected. For example when enabling raw message delivery for an Amazon SQS endpoint, the Amazon SNS metadata is not included and the published message is delivered to the subscribed Amazon SQS endpoint as is. When enabling raw message delivery for HTTP/S endpoints, the messages will contain an additional HTTP header x-amz-sns-rawdelivery with a value of true to indicate that the message is being published raw instead of with JSON formatting. This enables those endpoints to understand what is being delivered and enables easier transition for subscriptions from JSON to raw delivery.

To enable raw message delivery using one of the AWS SDKs, you must use the SetSubscriptionAttribute action and configure the RawMessageDelivery attribute with a value of true. The default value is false.

Enabling Raw Message Delivery with the AWS Management Console

You can enable raw message delivery using the AWS Management Console by setting the Raw Message Delivery subscription attribute to a value of true.

To enable raw message delivery with the AWS Management Console

  1. Sign in to the AWS Management Console and open the Amazon SNS console at

  2. Select a topic that is subscribed to either an Amazon SQS endpoint or an HTTP/S endpoint and then choose the topic ARN.

    The Topic Details page appears.

  3. Select the Subscription ID and then choose the Other subscription actions drop-down box.

  4. Choose Edit subscription attributes, select Raw Message Delivery, and then choose Set subscription attributes.