This topic describes how to create an event stream whose event target is Function Compute in the EventBridge console.
Before you start
Create an event stream
Log on to the EventBridge console. In the left-side navigation pane, click Event Streams.
In the top navigation bar, select a region and click Create Event Stream.
On the Create Event Stream page, configure the Task Name and Description parameters and follow the on-screen instructions to configure other parameters. Then, click Save. The following section describes the parameters:
Task Creation
In the Source, Filtering, and Transformation steps, configure the event source, event filtering method, and event transformation rule. Then, click Next Step. For information about event transformation configurations, see Use Function Compute to perform message cleansing.
In the Sink step, set the Service Type parameter to Function Compute and follow the on-screen instructions to configure other parameters. The following table describes the parameters.
Parameter
Description
Example
Service
Select the Function Compute service that you created.
test
Function
Select the Function Compute function that you created.
test
Service Version and Alias
Select a service version or alias.
Default Version
Invocation Mode
Select Synchronous or Asynchronous.
Asynchronous
Event
Select an event transformation method. For more information, see Event transformation.
Complete Event
Task Property
Configure the retry policy and dead-letter queue for the event stream. For more information, see Retry policies and dead-letter queues.
Go back to the Event Streams page and find the event stream that you created. Then, click Enable in the Actions column.
Enabling an event stream requires 30 to 60 seconds to complete. You can view the progress in the Status column of the event stream on the Event Streams page.
Verify the result
Log on to the Function Compute console. In the left-side navigation pane, click Services & Functions.
- In the top navigation bar, select a region.
Find the service that you want to manage, click Functions in the Actions column, and then click the name of the function that you want to manage.
On the Function Details page, click the Logs tab to view the logs.
The following figure shows the log details if ApsaraMQ for MQTT is specified as the event source.