Amazon API Gateway REST API to Amazon EventBridge to Amazon SQS fanout

API Gateway → EventBridge → SQS queue → SQS queue

Routes from Amazon API Gateway REST API to SQS via EventBridge.

This pattern creates an Amazon API gateway REST API endpoint. The endpoint uses service integrations to directly connect to Amazon EventBridge.
A rule evaluates whether the event should be sent to two distinct SQS queues.
This fanout pattern uses EventBridge with SQS targets.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/apigw-rest-api-eventbridge-sqs-fanout-cdk

Deploy

cd cdkcdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy.

Created by:

Patrick Meiler

Solutions Architect, AWS

Follow on LinkedIn