Recommended
How to stream Salesforce Platform Events to AWS using Event Relay and EventBridge (opens in a new tab)
You will learn how to configure Salesforce Event Relay to publish custom Platform Events to Amazon EventBridge without middleware.
Why read this
The guide covers channel setup, payload structure, error recovery options, and capacity limits so you can design a reliable integration.
Organizations often rely on expensive middleware to synchronize Salesforce data with AWS applications. This article demonstrates a direct integration path using Salesforce Event Relay and the Amazon EventBridge partner connection, removing the need for third-party platforms. The example tracks Account creation and pushes the details to a DynamoDB table.
The configuration requires a Named Credential pointing to the target AWS account, a Channel grouping the specific Platform Event type, and an Event Relay linking the two components. Once activated, Salesforce publishes record changes to its internal event bus. The relay reads these messages and forwards them to a dedicated AWS partner event bus, maintaining delivery state to resume after transient failures.
The relayed payload places event fields under a detail node, allowing AWS routing rules to send messages to an SQS queue for buffering before a Lambda function processes them into DynamoDB. The author highlights critical operational parameters, including the seventy-two hour retention window, LATEST versus EARLIEST error recovery modes, daily delivery quotas per edition, and the necessity of designing idempotent consumers to handle duplicate messages during failover.
Read the original at dev.to (opens in a new tab)