Configure SNS raw message delivery to SQS and understand its effect on message structure

domain: aws-sns · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create an SNS subscription to an SQS queue and set the RawMessageDelivery attribute to true via the AWS console, CLI, or SDK
  2. With raw delivery disabled (default), SNS wraps the original message in a JSON envelope containing metadata fields such as Type, MessageId, TopicArn, Subject, Timestamp, and SignatureVersion
  3. With raw delivery enabled, SQS receives only the original message body string with no SNS envelope; message attributes are passed through as SQS message attributes
  4. Update an existing subscription: aws sns set-subscription-attributes --subscription-arn <arn> --attribute-name RawMessageDelivery --attribute-value true
  5. Verify the change: aws sns get-subscription-attributes --subscription-arn <arn> and confirm RawMessageDelivery is true
  6. Adjust consumers: raw delivery consumers parse the message body directly rather than unwrapping an SNS JSON envelope

Known gotchas

Related routes

Fan out an SNS FIFO topic to subscribed SQS FIFO queues and understand what message-group and dedup metadata propagates automatically
aws-sns · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans