Relay Events from Salesforce to AWS

This section contains steps to create an event relay configuration in Salesforce.

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. To specify the AWS account and region for the destination in Amazon EventBridge, see Create a Named Credential.
  6. Create an event relay that references the prerequisite items you created earlier: the named credential and the channel. See Create an Event Relay Configuration.
  7. 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.
  8. Start streaming events from Salesforce to Amazon EventBridge. See Start the Event Relay.
  9. 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.
  10. 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