This topic describes how to create, view, and delete a custom event bus in the EventBridge console.
Prerequisites
EventBridge is activated and the required permissions are granted to a Resource Access Management (RAM) user. For more information, see Activate EventBridge and grant permissions.
Create a 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 Buses page, click Quickly Create in the Custom Event Buses section.
In the Create Custom Event Bus panel, perform the following operations:
(Required) In the Event Bus step, configure the Name and Description parameters and click Next Step.
(Optional) In the Event Source step, configure the Event Source Name and Description parameters, select an event provider, configure resource information, and then click Next Step.
If you do not want to create a custom event source, click Skip.
(Optional) In the Event Rule step, configure the Event Rule Name and Description parameters, specify an event pattern in the Pattern Content code editor, and then click Next Step.
If you do not want to create an event rule or configure an event target, click Skip and then click OK in the Skip Subsequent Steps message.
(Optional) In the Event Target step, follow the on-screen instructions to configure the parameters and click Create.
ImportantYou can add up to five targets to an event rule.
The target service and the event rule must be in the same region.
EventBridge supports the following event targets:
Function Compute: Processes events.
For more information, see What is Function Compute?.
Message Queue for Apache RocketMQ: Stores and transfers events.
For more information, see What is Message Queue for Apache RocketMQ?.
Message Queue for RabbitMQ: Stores and transfers events.
For more information, see What is Message Queue for RabbitMQ?.
Simple Message Queue (formerly MNS): Stores events.
For more information, see What is Simple Message Queue (formerly MNS)?.
Event bus: Filters and transforms events.
For more information, see What is EventBridge?.
HTTP gateway: Processes events for your business.
HTTPS gateway: Processes events for your business.
Direct Mail: Pushes event notifications as emails.
For more information, see What is Direct Mail?.
DingTalk: Sends event notifications to DingTalk.
ApsaraDB RDS for MySQL: Stores and transfers events.
For more information, see Overview of ApsaraDB RDS for MySQL.
Self-managed MySQL database: Stores and transfers events.
You can also select a method to transform the event content. For more information, see Event transformation.
If you do not want to create an event rule or configure an event target, click Skip and then click OK in the Skip Subsequent Steps message.
View a 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 Buses page, find the custom event bus that you want to view and click Details in the Actions column.
The Overview page displays the basic information and endpoint information about the custom event bus.
Delete a custom event bus
You must delete all event sources and event rules created in a custom event bus before you delete the custom event bus. Otherwise, the custom event bus fails to be deleted.
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, find the custom event bus that you want to delete and click Delete in the Actions 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 verification code in the Verification Code field, and then click OK.
WarningAfter you delete a custom event bus, the data in the custom event bus cannot be restored.