Realtime subscriptions with Amazon EventBridge and AWS AppSync

EventBridge → AWS AppSync

Create real time subscriptions from EventBridge to AppSync

This pattern configures AppSync as an EventBridge target allowing consumers subscribe to real-time updates using GraphQL subscriptions.
Events published on the event bus are forwared to the Mutation on the AppSync GraphQL schema. Consumers of the API can subscribe in real time.
Using this example GraphQL subscription you can listen for events based on account, region, detail-type or source.

< 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/eventbridge-to-appsync-sam

Deploy

sam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: sam delete.

Created by:

David Boyne

David Boyne

Helping people learn about event-driven architectures and serverless

Follow on LinkedIn