Automate recurring CSV file imports from your Amazon S3 bucket to Stripe.
This guide explains how to import CSV files from Amazon S3 into the Stripe Data Management Platform. By following these steps, you set up an automated job for importing data to keep your Stripe products up-to-date.
Before starting the integration, make sure you have the following:
An active AWS account and S3 bucket with access to the relevant CSV files.
Admin account access to the Stripe Dashboard.
An automated file delivery job for sending new CSV files to your S3 bucket regularly (optional).
A sample CSV file and data template in the Stripe Data Management Dashboard to verify your data template is correctly configured (optional).
Be aware that the Amazon List Object API doesn’t support filtering objects by LastModified. As a result, you need to list all bucket contents for each nightly import. Manage your bucket carefully, allowing the associated IAM role to access only the data you want Stripe to import. We suggest applying an S3 lifecycle rule to expire objects after 14 days and maintaining fewer than 1000 objects in the DataConnection source.
To validate your connection configuration, use well-formatted CSV data in your S3 bucket. The configuration process shows you available files, and runs an initial sync when the connection is configured.
The next step of the Stripe Amazon S3 Connector setup provides details to Create an IAM Role using a Custom trust policy.
In the navigation pane of the console, choose Roles and then choose Create role.
Choose the Custom trust policy role type.
To create your trust policy, go to your AWS IAM Dashboard, click Roles > Create role > Custom trust policy, then copy paste the code block below and click Next.
To create your permission policy, click Create policy which opens a new tab. Select JSON and replace the existing policy text by copying and pasting the code block below. In the Resource section of the code block, replace USER_TARGET_BUCKET with your intended bucket name. Click Next, and add a policy names, along with any tags (optional), and click Create policy.
To create a role name, return to the previous tab where your policies are listed and click the refresh icon. The newly created policy now shows up in the list. Click the checkbox to select the policy, scroll down and click Next. Copy and paste the role name from the setup and click Create role.
The following step of the Stripe Amazon S3 Connector setup establishes the connection between your Amazon S3 bucket and Stripe.
Welcome to the Stripe Shell!
Stripe Shell is a browser-based shell with the Stripe CLI pre-installed. Log in to your
Stripe account and press Control + Backtick (`) on your keyboard to start managing your Stripe
resources in test mode.
- View supported Stripe commands:
- Find webhook events:
- Listen for webhook events:
- Call Stripe APIs: stripe [api resource] [operation] (e.g., )