Amazon S3

Dana KangWritten by Dana Kang,

Note

Airbridge will deprecate all access key-based connections with Amazon S3 on July 1, 2024. To continue exporting data to Amazon S3, you must complete all of the following tasks by June 30, 2024:

  • Adjust columns in Amazon S3

  • Delete any access key-based connections

  • Create an IAM role-based connection

For detailed instructions, refer to this article.

Those using IAM role-based connections don’t have to take any action.

Airbridge supports integration with Amazon S3. With the integration, the raw data collected by the Airbridge SDK and tracking links are passed from Airbridge to Amazon S3 on a daily basis, allowing you to process data in various ways to suit your needs.

Attention

When you disable and then re-enable integration with cloud storage, the integration version is updated to the latest version. As the exported columns vary depending on the integration version, check whether the columns need to be adjusted before re-enabling to prevent any issues.

For more information about the columns, refer to this article.

Integration With Connections

To enable integration with Amazon S3, create a connection by submitting the following Amazon S3 information to Airbridge:

  • Bucket name

  • Region

  • IAM role ARN

The bucket name and region can be found in the AWS Amazon S3 console. The IAM role ARN can be found in the AWS IAM console.

Get the bucket name and region in the Amazon S3 console

Follow the steps below to get the bucket name and region in the Amazon S3 Console.

1. Sign in to the AWS Management Console and open the Amazon S3 console.

2. Navigate to [Buckets] to find the bucket list. Get the name and AWS Region of the bucket to receive data from Airbridge.

If you don’t have a bucket or want a new bucket, click Create bucket. For detailed instructions on creating a bucket, refer to AWS Documentation.

Add an Amazon S3 bucket to Airbridge

Follow the steps below to add an Amazon S3 bucket to Airbridge by submitting the bucket name and region.

1. Navigate to [Integrations]>[Third-party Integration] in the Airbridge dashboard. Select “Amazon S3.”

2. Click + Create a connection.

3. Enter the bucket name and region you got from the Amazon S3 console.

4. Under File Format, select between CSV and Parquet. Click Submit to save.

5. Once you have submitted all the information correctly, you will see the policy required to create an IAM policy.

Click Copy to copy the policy. Then, go back to the AWS Management Console.

Create an IAM policy in the IAM console

Follow the steps below to create an IAM policy that manages access to AWS resources.

1. Sign in to the AWS Management Console and open the IAM console.

2. Navigate to [Access management]>[Policies] and click Create policy.

3. Select the [JSON] option. Paste the policy copied from the Airbridge dashboard and click Next.

4. Under [Review and create], enter your choice of policy name. Don’t change other settings. Click Create policy to finish creating the policy.

Create an IAM role in the IAM console

Follow the steps below to create an IAM role with specific permissions.

1. Go back to the Airbridge dashboard and click Next step.

2. Copy the account ID and external ID required to create an IAM role.

3. Go back to the IAM console. Navigate to [Access management]>[Roles] and click Create role.

4. Under [Select trusted entity], select “AWS account.”

5. Under [An AWS account], select “Another AWS account.” Paste the account ID copied from the Airbridge dashboard.

Then, select the “Require external ID” option and paste the external ID copied from the Airbridge dashboard. Click Next.

6. Under [Add permissions], search for the policy created for the integration. Check the checkbox and click Next.

7. Under [Name, review, and create], enter your choice of role name. Don’t change other settings. Click Create role to finish creating the role.

Submit the IAM role ARN to Airbridge

Follow the steps below to submit the IAM role ARN to Airbridge.

1. Navigate to [Access management]>[Roles] in the IAM console. Click the name of the IAM role created for the integration.

2. Copy the ARN.

3. Go back to the Airbridge dashboard. Paste the ARN copied from the IAM console and click Submit. Test the connection to complete the integration setup.

Test the connection

Test the connection to ensure data can be successfully exported from Airbridge to Amazon S3. The integration setup will only be complete once the connection has been tested.

1. Click Connection test in the Airbridge dashboard.

2. Wait for about 10 seconds for the test to complete. If the test succeeds, the connection you created has been successfully saved.

If the test fails, check the information you submitted to Airbridge and test the connection again. If you leave the page without succeeding the test, your changes won’t be saved and you will have to start over the integration process.

Integration management

Find out how to edit credentials or delete connections for integration.

Integration status by data source

Once the integration setup is complete, you can view the integration status by data source on the cloud storage integration page.

Refer to the below for details about integration status and data export schedule.

Data Access in the Cloud Storage

Note

The latest Amazon S3 integration version is 2.0. The sample data for the integration version can be found below:

Once your Amazon S3 integration setup is complete, data will be pushed to cloud storage starting at the next 7:00 PM (UTC). The data will be saved as .csv.gz files with the following paths within the bucket integrated with Airbridge:

  • App events: ${YOUR-BUCKET-NAME}/${YOUR-APP-NAME}/app/${VERSION}/date=${year}-${month}-${day}/

  • Web events: ${YOUR-BUCKET-NAME}/${YOUR-APP-NAME}/web/${VERSION}/date=${year}-${month}-${day}/

  • Tracking link events: ${YOUR-BUCKET-NAME}/${YOUR-APP-NAME}/tracking-link/${VERSION}/date=${year}-${month}-${day}/

Each file, created per event, uses the values from the Field Name column of the Airbridge Data Spec spreadsheet as the column names.

Attention

Was this page helpful?

Have any questions or suggestions?