Amazon EventBridge Destination

Amazon EventBridge is the easiest way to onboard your Segment data into the AWS ecosystem.

In addition to already supported destinations like Kinesis, S3, and Redshift, you can use EventBridge to selectively route streaming data into Amazon SQS, SNS, and any service supported by AWS CloudWatch Events.

Getting Started

The first step is to make sure Amazon EventBridge supports the source type and connection mode you’ve chosen to implement. You can learn more about what dictates the connection modes we support here.

WebMobileServer
📱 Device-mode
☁️ Cloud-mode
  1. Provide Segment your AWS Account ID and the region you’d like us to configure the Segment Partner Event Source in. Ensure you’ve provided the same region in Segment where you’d like to configure your Event Bus.
  2. Once you send an event through with the destination enabled, we’ll create a Partner Event Source in Amazon EventBridge, which you can activate in the AWS Console.
  3. Use the AWS Console to configure rules and destinations for the events in your Segment Partner Event Source.

The Event Source will be denoted by your Segment Source ID, which you can find in your Source Settings page under API Keys.

We’ll forward all the messages in the source (pending any Destination Filters you’ve enabled) to the Segment Partner Event Source we create for you in EventBridge.

Page

If you haven’t had a chance to review our spec, please take a look to understand what the Page method does. An example call would look like:

  analytics.page();

Identify

If you haven’t had a chance to review our spec, please take a look to understand what the Identify method does. An example identify call is shown below:

analytics.identify('97980cfea0085', {
  email: 'gibbons@initech.com',
  name: 'John Gibbons'
});

Track

If you haven’t had a chance to review our spec, please take a look to understand what the Track method does. An example identify call is shown below:

analytics.track("User Registered", {
  checkinDate: new Date(),
  myCoolProperty: "foobar",
});

Personas

You can send computed traits and audiences generated through Segment Personas to this destination as a user property. To learn more about Personas, reach out for a demo.

For user-property destinations, an identify call will be sent to the destination for each user being added and removed. The property name will be the snake_cased version of the audience name you provide with a true/false value. For example, when a user first completes an order in the last 30 days, we will send an identify call with the property order_completed_last_30days: true, and when this user no longer satisfies we will set that value to false.

When the audience is first created an identify call is sent for every user in the audience. Subsequent syncs will only send updates for those users which were added or removed since the last sync.

Settings

Segment lets you change these destination settings via your Segment dashboard without having to touch any code.

AWS Account ID

The ID of the AWS Account you’d like us to send data to.

Region

The EventBridge Firehose AWS region key.

Adding Amazon EventBridge to the integrations object

To add Amazon EventBridge to the integrations JSON object (for example, to filter data from a specific source), use one of the 1 valid names for this integration:
  • Amazon EventBridge


  • Questions? Need help? Contact us!
    Can we improve this doc?
    Email us: docs-feedback@segment.com!