Notify consumers of schema changes with Schema Registry events

Schema → EventBridge Bus → AWS Lambda → Slack

Use Schema Registry events and EventBridge to notify consumers of changes (Slack example)

This pattern will use a CDK abstraction to allow consumers to listen to for schema changes with Amazon EventBridge. Schema changes will be forward to Slack (as an example)
How the enrichment works
  • 1. First you need a Schema Registry, you can either create your own or turn on schema discovery for your EventBridge Bus.
  • 2. By default the schema registry will publish events to your default event bus when schemas are created or updated. All accounts have a default event bus.
  • 3. The default event bus will be used in this pattern. All aws.schemas events are published there.
  • 4. This pattern will setup a rule onto your default event bus and listen to new or changed schema events (you decide with the notifer CDK pattern).
  • 5. With the Plugin API, new targets are added to the changes and your target is triggered. You can notify people in slack, email or anything you want (you just need to create your own plugin).

< 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-schema-notifications

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk delete.

Additional resources

Created by:

David Boyne

David Boyne

Helping people learn about event-driven architectures and serverless

Follow on LinkedIn