Loading
Salesforce now sends email only from verified domains. Read More
Extend Salesforce with Clicks, Not Code
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Create an EventBridge Rule for Logging Events in a CloudWatch Log

          Create an EventBridge Rule for Logging Events in a CloudWatch Log

          To test the connection between Salesforce and AWS and ensure that the event messages are received in EventBridge, add a CloudWatch log as a target of a rule. Incoming event messages from Salesforce are logged in CloudWatch.

          For more information, see Amazon EventBridge rules and Amazon EventBridge targets in the AWS documentation.

          1. In Amazon Eventbridge, click Rules.
          2. Select your event bus from the dropdown. The name of the event bus is the same as the name of the partner event source that you queried earlier. It’s in this format: aws.partner/salesforce.com/orgID/channelID
          3. In the Rules section, click Create rule.
          4. Provide a name for your rule.
          5. Click Next.
          6. Under Event source, select AWS events or EventBridge partner events.
          7. Skip the Sample event section. In Event pattern, for Event source, select EventBridge partners.
            1. From the partner dropdown, select Salesforce.
            2. For Event type, select All Events. The event pattern box autopopulates to this value.
              {
                "source": [{
                  "prefix": "aws.partner/salesforce.com"
                }]
              }
          8. The rule matches incoming events based on the defined pattern. If you want to add a filter to match a specific platform event, match events whose detail-type field contains the API name of the platform event, for example, Carbon_Comparison__e. For more information about event pattern matching, see Content filtering in Amazon EventBridge event patterns in the AWS documentation.
            1. Under Event pattern, click Custom patterns (JSON editor).
            2. In the input box, In Define pattern, select Custom pattern, and replace the pattern with this pattern.
              {
                "source": [{
                  "prefix": "aws.partner/salesforce.com"
                }],
                "detail-type": ["Carbon_Comparison__e"]
              }
          9. Click Next.
          10. Under Target 1, Target types, select AWS service.
          11. Under Select a target, select CloudWatch log group.
          12. Complete the log group path. For example: /aws/events/mygroup/log.
          13. Click Next and then Next.
          14. Review the rule that you created, and then click Create rule.

          After creating the rule and the Cloudwatch log, verify receiving events in Verify Receiving Events in CloudWatch.

           
          Loading
          Salesforce Help | Article