Relay Events from Salesforce to AWS
This section contains steps to create an event relay configuration in Salesforce.
- You use Tooling API to create the event relay and all the prerequisite items. To choose and configure a tool for REST API, see Set Up a REST API Tool.
- To stream platform events, define a custom platform event. You can skip this step if you use an existing custom platform event or a change event. You don’t define change events because they’re predefined by Salesforce. See (Optional) Define a Platform Event.
- One of the prerequisites of event relay is a channel. A channel can contain a stream of platform events or change events. To create a channel, see Create a Channel.
- Specify which events are part of the channel by adding a channel member. You can add one channel member for a custom platform event or for a change event. See Create a Channel Member.
- To specify the AWS account and region for the destination in Amazon EventBridge, see Create a Named Credential.
- Create an event relay that references the prerequisite items you created earlier: the named credential and the channel. See Create an Event Relay Configuration.
- The event relay is created in a stopped state, and events can’t be delivered to Amazon EventBridge until you activate the event bus in Amazon EventBridge. See Activate the Event Bus in AWS Amazon EventBridge.
- Start streaming events from Salesforce to Amazon EventBridge. See Start the Event Relay.
- Test the connection between Salesforce and AWS, and ensure that the event messages are received in EventBridge by using a CloudWatch log. See Create an EventBridge Rule for Logging Events in a CloudWatch Log.
- After receiving the events in EventBridge, you can process them with AWS using rules, or you can send them to third-party and SaaS integrations using API destinations. Process Events with AWS Services