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 the configurations of event transformation, 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
The Function Compute service that you created.
test
Function
The Function Compute function that you created.
test
Version and Alias
Specify whether to use a specific version or a specific alias. Valid values: Specified Version and Specified Alias. If you select Specified Version, you must configure the Version parameter. If you select Specified Alias, you must configure the Alias parameter.
Specified Version
LATEST
Invocation Mode
The invocation method. Valid values:
Asynchronous
Synchronous
Asynchronous
Event
The method that you want to use to transform events. 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.
The event stream requires 30 to 60 seconds to be enabled. You can view the progress in the Status column of the event stream on the Event Streams page.
Verify the result
On the Event Streams page, find the event stream that you created, and then click the function name in the Event Target column.
On the Function Details page, click the Logs tab and then click Function Logs to view the logs of the function.