This topic describes how to connect a custom event source to EventBridge in the EventBridge console.
Prerequisites
Step 1: Create a custom event source
- Log on to the EventBridge console.
- In the left-side navigation pane, click Event Buses.
- In the top navigation bar, select a region.
- On the Event Buses page, click the name of the target event bus.
- In the left-side navigation pane, click Event Sources.
- On the Event Sources page, click Add Event Source.
- In the Add Custom Event Source panel, set the Name and Description parameters, select Custom Application from the Event Provider drop-down list, and then click OK.
Step 2: Create an event rule
Notice The event targets that you want to configure for an event rule must reside in the
same region as the event rule.
- Log on to the EventBridge console.
- In the left-side navigation pane, click Event Buses.
- In the top navigation bar, select a region.
- On the Event Buses page, click the name of the target event bus.
- In the left-side navigation pane, click Event Rules.
- In the left-side navigation pane, click Event Rules. On the Event Rules page, click Create Rule.
- Complete the Create Rule wizard.
Step 3: Publish an event
Step 4: Verify the result
Step 5: Delete the event rule
- Log on to the EventBridge console.
- In the left-side navigation pane, click Event Buses.
- In the top navigation bar, select a region.
- On the Event Buses page, click the name of the target event bus.
- In the left-side navigation pane, click Event Rules.
- On the Event Rules page, find the event rule that you want to delete and click Delete in the Operations column.
- In the Note message, read the note and click OK.
- In the Verify Account Security dialog box, click Obtain Verification Code, enter the obtained verification code in the Verification Code field, and then click OK.
Step 6: Delete the custom event bus
- Log on to the EventBridge console.
- In the left-side navigation pane, click Event Buses.
- In the top navigation bar, select a region.
- On the Event Bus page, find the custom event bus that you want to delete and click Delete in the Operations column.
- In the Note message, read the note and click OK.
- Optional:In the Verify Account Security dialog box, click Obtain Verification Code, enter the obtained verification code in the Verification Code field, and then click OK.
Notice Make sure that no event source is associated with the custom event bus that you want
to delete. Otherwise, the custom event bus fails to be deleted, and the following
error message is returned: An event source has been bound to the event bus. Delete the event source bound to
the event bus or specify another event bus.