Inferring schemas from event bus events in EventBridge
Amazon EventBridge can infer schemas by discovering events. To infer schemas, you turn on event discovery on an event bus and every unique schema is added to the schema registry, including those for cross-account events. Schemas discovered by EventBridge appear in Discovered schemas registry on the Schemas page.
If the contents of events on the event bus change, EventBridge creates new versions of the related EventBridge schema.
Considerations when starting schema discovery on an event bus
Take into account the following considerations before enabling schema discover on an event bus:
Enabling event discovery on an event bus can incur a cost. The first five million processed events in each month are free.
EventBridge infers schemas from cross-account events by default but you can disable it by updating the
cross-account
property. For more information, see Discoverers in the EventBridge Schema Registry API Reference.
Note
Archives and schema discovery are not supported for event buses encrypted using a customer managed key. To enable archives or schema discovery on an event bus, choose to use an Amazon owned key. For more information, see KMS key options.
To start or stop schema discovery on an event bus (console)
Open the Amazon EventBridge console at https://console.amazonaws.cn/events/
. -
In the navigation pane, choose Event buses.
-
Select the event bus on which you want to start or stop schema discovery.
-
Do one of the following:
-
To start schema discovery, choose Start discovery.
-
To stop schema discovery, choose Delete discovery.
-
To start or stop schema discovery on an event bus (Amazon CLI)
-
To start schema discovery, use create-discoverer.
To stop schema discovery, use delete-discoverer.