Amazon EventBridge
The following are the requirements and connection instructions for using Amazon EventBridge with Amazon AppFlow.
Note
You can use Amazon EventBridge as a destination only.
Requirements
Amazon AppFlow integrates with Amazon EventBridge to receive events from Salesforce. When you configure a flow that responds to Salesforce events, you can choose Amazon EventBridge as a destination. This enables Salesforce events received by Amazon AppFlow to be routed directly to a partner event bus.
-
To configure Amazon EventBridge integration in Amazon AppFlow, you must first create a flow with Amazon EventBridge as the destination and then specify the partner event source.
-
Before you can activate the flow, you must go to Amazon EventBridge to associate the partner event source with the event bus. After you complete this association and activate the flow, Salesforce events start flowing to the Amazon EventBridge event bus.
Connection instructions
To create a flow with Amazon EventBridge as the destination
Sign in to the AWS Management Console and open the Amazon AppFlow console at https://console.aws.amazon.com/appflow/
. -
Choose Create flow and enter a name for your flow.
-
For Source details, choose Salesforce as the source and select Salesforce Events with the specific event name.
-
For Destination details, choose Amazon EventBridge as the destination and one of the following partner event sources:
-
Existing partner event source - Amazon AppFlow displays a list of existing partner event sources that are available to you.
-
New partner event source - Amazon AppFlow creates a new partner event source on your behalf. If you choose this option, the partner event source name generated by Amazon AppFlow appears in a dialog box. (Optional) You can modify this name if needed.
Note
The actual call to Amazon EventBridge API operations for creating this partner event source happens only when you choose Create flow in step 11 of this procedure.
-
-
For Large event handling, specify the S3 bucket where you want Amazon AppFlow to send large event information.
-
Ensure that Run flow on event is selected in the Flow trigger section. This setting ensures that the flow is executed when a new Salesforce event occurs.
-
For field mapping, choose Map all fields directly. Alternatively, you can choose the fields that you're interested in using from the Source field name list.
-
Choose Next.
-
(Optional) Configure filters for data fields in Amazon AppFlow.
-
Choose Next.
-
Review the settings and then choose Create flow.
To associate the partner event source with the event bus in Amazon EventBridge
-
Open the Partner event sources view in the Amazon EventBridge console at https://console.aws.amazon.com/events/home?#/partners/
. -
Choose the partner event source that you created.
-
Choose Associate with event bus.
-
Validate the name of the partner event bus.
-
Choose Associate.
-
Return to Amazon AppFlow and choose Activate flow to activate the flow.
Notes
-
Events are limited to 256 KB. For events larger than 256 KB, Amazon AppFlow doesn't send the full event to Amazon EventBridge. Instead, the event payload contains a pointer to an S3 bucket, where you can get the full event.
-
Events should be enabled in Salesforce and also in Amazon AppFlow for the destination to receive them. The destination service receives all such events configured for your account. If you need to filter the kinds of events that you want to process, or send different events to different targets, you can use content-based filtering with event patterns.
Related resources
-
Receiving events from a SaaS partner in the Amazon EventBridge documentation
-
Amazon AppFlow now supports Amazon EventBridge as a destination
in the AWS What's new blog -
Building Salesforce integrations with Amazon EventBridge and Amazon AppFlow
in the AWS Compute blog