Build an EventBridge Pipe from SQS to EventBridge bus with filtering and Lambda enrichment

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

Steps

  1. Create a Pipe with source=SQS queue ARN; configure source parameters including BatchSize and a filter criteria JSON pattern to drop unwanted messages before enrichment
  2. Attach a Lambda function as the enrichment step; the Pipe invokes the Lambda synchronously with the filtered batch and uses the Lambda's return value as the event payload sent to the target
  3. Configure the target as an EventBridge event bus with InputTransformer to map the enriched payload to the event detail structure
  4. Assign an IAM role to the Pipe with permissions to read from SQS (sqs:ReceiveMessage, sqs:DeleteMessage, sqs:GetQueueAttributes), invoke the enrichment Lambda, and put events to the bus
  5. Start the Pipe and verify by sending test messages to the SQS queue; check the Pipe's CloudWatch Logs log group for filter and enrichment execution details
  6. Use PipeState to pause the Pipe during maintenance without deleting configuration

Known gotchas

Related routes

Build an EventBridge Pipe from an SQS source to an EventBridge event bus with batch filtering and Lambda enrichment
docs.aws.amazon.com · 6 steps · unrated
tune an sqs-to-lambda event source mapping's batching window and concurrency for cost and latency trade-offs
docs.aws.amazon.com · 5 steps · unrated
Route events using AWS EventBridge rules with automatic retries and a dead-letter queue for failed targets
aws-eventbridge · 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