Create the prerequisite items that your event relay uses, such as a named credential, a channel, a channel member, and optionally a platform event.
- (Optional) Define a Platform Event
If you have a custom platform event defined in your Salesforce org that you want to use for the event relay, you can skip this step. You can also skip this step if you want to use the event relay with a change data capture event. Otherwise, follow the steps in this section to define an example platform event,Carbon_Comparison__e, which the event relay configuration steps use. - Create a Named Credential for Event Relay Setup
A named credential stores your AWS account information. You use the named credential later to set up an event relay. You can create a named credential in the Salesforce user interface in Setup. - Create a Channel and Channel Members
You can create a channel and add members by using Tooling API. A channel is a stream of events. It contains members that specify the type of events that can be received on the channel. A channel can contain a stream of platform events, including real-time event monitoring events, or change data capture events. For a channel of change data capture events, you can select the standardChangeEventschannel instead of creating a custom channel.