Fan out messages from an SNS FIFO topic to a Lambda function

domain: docs.aws.amazon.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Create an SNS FIFO topic (name must end in `.fifo`).
  2. Create one or more SQS queues (FIFO or standard) and subscribe each queue to the SNS FIFO topic.
  3. Configure the SQS queue as a Lambda event source mapping via the Lambda console or `CreateEventSourceMapping` API, setting the batch size and other trigger parameters.
  4. Grant the SNS topic permission to send messages to the SQS queue (add a queue access-policy statement with `sqs:SendMessage` and a condition on the topic ARN).
  5. Deploy your Lambda function; it will be invoked by SQS with batches of SNS-wrapped message records.

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
Fan out SNS messages to multiple SQS queues with subscription filter policies
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