Publish a test event to the event bus that is associated with the rule you created in a previous step, and verify that your subscriber in Salesforce receives the event from Amazon EventBridge.
-
Start your event subscriber. For example, in Salesforce, you can create an Apex trigger
that subscribes to the sample
Carbon_Estimate__eevent or another event that you’re using. To create a platform event trigger, see Subscribe to Platform Event Notifications with Apex Triggers in the Platform Events Developer Guide. - In Amazon EventBridge, from the Event buses page, click the event bus associated with the rule and API destination.
- In the event bus page, copy the event bus ARN.
- Click Send events.
- For Event source, enter the ARN that you copied earlier.
-
For Detail type, enter the platform event API name. For example,
Carbon_Estimate__e. -
For Event detail, provide the fields and values in JSON format. For example, this event
message contains two fields for the
Carbon_Estimate__eevent.{ "Current_Vehicle__c": "Fast Car", "Carbon_Reduction_Percentage__c": 33 } - Click Send.
- In your subscriber, verify that the event was received from EventBridge.