The Amazon S3 connector exports your data from the app to an Amazon S3 bucket as JSON files, so you can use it in your own reporting and business intelligence (BI) tools. The connector only writes to the bucket and never reads data from it back into the app. You can also point it at S3-compatible storage from MinIO or Cloudflare R2.
With this connector, you can:
- Export orders, shipping requests, fulfillments, products, inventory, locations, purchases, transfers, arrivals, receipts, and exceptions to your bucket every 5 minutes.
- Choose which record types to export, and export only records created after a date you set.
- Control the folder path and file names of the exported files.
- Mask personal information in exported orders, shipping requests, and fulfillments.
- Export to Amazon S3, MinIO, or Cloudflare R2.
Setup
Before you begin
- An Amazon S3 bucket, or a bucket in MinIO or Cloudflare R2. The connector only writes to the bucket. It never reads files back into the app.
- The bucket URL in the format
s3://bucketname/path/to/root, for examples3://my-bucket/exports. The bucket name always goes in this URL, for every provider. The path after the bucket name is the root folder for the exported files, and it's optional. - The bucket region, for example
us-west-2. For Cloudflare R2, the region isauto. For MinIO, any value works, for exampleus-east-1. - An access key ID and secret access key that can list the bucket and write objects to it. For Amazon S3, this is an access key for an IAM user. The connector doesn't support IAM roles or temporary credentials.
- For Amazon S3: someone who can create IAM users and policies in your AWS account, such as your AWS administrator.
- For MinIO or Cloudflare R2 only: your S3-compatible endpoint URL, for example
https://minio.example.com:9000orhttps://<account-id>.r2.cloudflarestorage.com.
Get your credentials from AWS
These steps are for Amazon S3. For MinIO or Cloudflare R2, create an access key and secret key in that service that can list the bucket and write objects to it, and then go to Connect in the app.
- Find the bucket's AWS Region. Sign in to the Amazon S3 console, choose General purpose buckets, and note the AWS Region of your bucket, for example
us-west-2. The region must match the bucket exactly. - Create a policy that allows only what the connector needs. In the IAM console, choose Policies, and then choose Create policy. In the Policy editor, choose JSON, and paste a policy with these permissions. Replace
my-bucketandexportswith your bucket name and root path.Permission Resource Used for s3:ListBucketarn:aws:s3:::my-bucketTesting access when you connect s3:PutObjectarn:aws:s3:::my-bucket/exports/*(orarn:aws:s3:::my-bucket/*if you don't use a root path)Writing the export files kms:GenerateDataKeyYour KMS key Only if the bucket's default encryption uses an AWS KMS customer managed key For example:
Choose Next, enter a Policy name, and choose Create policy. For details, see AWS's Create IAM policies (console) article.{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":"s3:ListBucket","Resource":"arn:aws:s3:::my-bucket"},{"Effect":"Allow","Action":"s3:PutObject","Resource":"arn:aws:s3:::my-bucket/exports/*"}]} - Create an IAM user for the app. In the IAM console, choose Users, and then choose Create user. Enter a User name, and choose Next. On the Set permissions page, attach the policy you created, and then choose Create user. The user doesn't need console access.
- Create the access key. Open the user, select the Security credentials tab, and in the Access keys section choose Create access key. On the Access key best practices & alternatives page, choose Other, and then choose Next. Choose Create access key. For details, see AWS's Manage IAM user access keys article.
- On the Retrieve access keys page, copy the access key ID and the secret access key, or choose Download .csv file. AWS shows the secret access key only once. If you lose it, delete the key and create a new one.
Note: AWS access keys don't expire, but AWS recommends that you rotate them. To rotate without stopping the export, create a second key (a user can have two), enter it on the integration's Connection Details tab and save, check that files still arrive, and then deactivate and delete the old key. If the bucket is in a different AWS account than the IAM user, the bucket owner must also allow these actions for the user in the bucket policy.
Connect in the app
- Navigate to Integrations in the app.
- Click Add Integration, and then select Amazon S3. The Connect Amazon S3 pop-up opens.
- Enter your bucket URL in the Specify Amazon S3 bucket URL field, for example
s3://my-bucket/exports. - Enter the bucket region in the Specify AWS Region field.
- Enter the access key ID in the Specify AWS API Access Key field.
- Enter the secret access key in the Specify AWS API Access Secret field.
- Under Storage provider, select Amazon S3, MinIO, or Cloudflare R2. The default is Amazon S3.
- If you selected MinIO or Cloudflare R2, enter your endpoint URL in the S3-compatible endpoint URL field, and leave Use path-style bucket addressing on. For Amazon S3, leave the endpoint field empty.
- Optionally, change Separator for file name components, Generate POSIX compatible file names, and Use path template when posting files to Amazon S3. For details, see Settings.
- Click Connect.
When you connect, the app lists the bucket to check that the keys work. It doesn't write a test file.
Note: If you click Add without credentials, the integration is added but doesn't export until you enter the connection details on the Connection Details tab and save.
Confirm the connection
- On Integrations, check that the Amazon S3 integration shows Connected and that its switch is on. If it shows Error or Not Configured, open it and read the error. Check the bucket URL, region, and keys on the Connection Details tab, and then save again.
- Turn on Push locations to Amazon S3, and save. Locations make a good test because most accounts have only a few.
- Wait about 5 minutes. The export runs every 5 minutes.
- Open your bucket and go to the root path, and then to the folder from the path template. With the default template, this is
pipe17/<your org key>/locations. Check that it holds one.jsonfile for each location. Each file name contains the location ID and the date and time the location was last updated. - If you don't want to export locations, turn off Push locations to Amazon S3, and save. Then turn on the record types you want, such as Push orders to Amazon S3. To export only recent records, set Only push orders created after (or the matching setting for that record type) before you turn the export on.
Settings
Each record type has its own group of settings. Record types: locations, orders, shipping requests, fulfillments, transfers, purchases, arrivals, receipts, products, inventory, and exceptions.
| Setting | Description | Options/Default |
|---|---|---|
| Separator for file name components | The character between the parts of each exported file name. | Colon (:), Underscore (_), Dash (-), Dot (.). Default: Colon (:) |
| Generate POSIX compatible file names | Removes characters other than letters, numbers, periods, dashes, and underscores from file names. | On/Off. Default: Off |
| Use path template when posting files to Amazon S3 | The folder path inside your bucket root. You can use {orgKey}, {entityType}, and {entityDate} (the UTC date the record was last updated). |
Default: pipe17/{orgKey}/{entityType}
|
| Mask Personal Identifiable Information (PII) in objects reported to Amazon S3 | Replaces personal information, such as names and addresses, with * in exported orders, shipping requests, and fulfillments. |
On/Off. Default: Off |
| Push <record type> to Amazon S3 | Exports that record type to your bucket, for example Push orders to Amazon S3. | On/Off. Default: Off |
| Only push <record type> created after | Exports only records of that type created after the date and time you set, for example Only push orders created after. | Optional date and time |
| Force <record type> resync | Exports records of that type again from the start, for example Force orders resync. | On/Off |
Flows
| Flow | Direction | Notes |
|---|---|---|
| Orders, shipping requests, and fulfillments | Pipe17 → Amazon S3 | Runs every 5 minutes when the matching Push … to Amazon S3 setting is on. Each new or updated record is written as a separate JSON file. If Mask Personal Identifiable Information (PII) in objects reported to Amazon S3 is on, personal information is masked. |
| Products, inventory, and locations | Pipe17 → Amazon S3 | Runs every 5 minutes when the matching Push … to Amazon S3 setting is on. Each new or updated record is written as a separate JSON file. |
| Purchases, transfers, arrivals, and receipts | Pipe17 → Amazon S3 | Runs every 5 minutes when the matching Push … to Amazon S3 setting is on. Each new or updated record is written as a separate JSON file. |
| Exceptions | Pipe17 → Amazon S3 | Runs every 5 minutes when Push exceptions to Amazon S3 is on. Each new or updated exception is written as a separate JSON file. |
| Data from the bucket | Not supported | The connector never reads files from your bucket into the app. |
Files are saved at <bucket root>/<path template>/<file name>.json. Each file name contains the record ID and the date and time the record was last updated, joined by the separator you choose. Because the update time is part of the name, every update creates a new file instead of replacing the previous one.
Troubleshooting
-
The connection fails with a redirect or endpoint error for Amazon S3
The region in Specify AWS Region doesn't match the bucket's region. Check the bucket's AWS Region in the Amazon S3 console, enter it exactly, for exampleus-west-2, and then connect again. -
The connection works, but files fail with an access denied error
The key can list the bucket but can't write to the root path, or the bucket encrypts files with an AWS KMS customer managed key. Check thats3:PutObjectcoversarn:aws:s3:::<bucket>/<root path>/*, and addkms:GenerateDataKeyon the KMS key if the bucket uses one. -
Exports stop after you rotate or delete an AWS access key
The integration still uses the old key. Enter the new access key ID and secret access key on the Connection Details tab, and save. Deactivate the old key only after files arrive with the new one. -
The connection fails with a bucket URL error
The Specify Amazon S3 bucket URL field must use the formats3://bucketname/path. If you use MinIO or Cloudflare R2, enter the server URL in S3-compatible endpoint URL, not in the bucket URL field. -
The connection fails with a region error
A region is always required. For Cloudflare R2, enterauto. For MinIO, enter any value, such asus-east-1. -
The connection fails with an endpoint error for MinIO or Cloudflare R2
Both providers need an endpoint URL that starts withhttp://orhttps://. MinIO also requires Use path-style bucket addressing to be on. The connector doesn’t accept self-signed TLS certificates, so use a trusted certificate. -
The connection fails with an access denied error
The access key or secret key is wrong, or the key can’t list the bucket. When you connect, the app lists the bucket to test access, so the key needss3:ListBucketon the bucket ands3:PutObjecton the objects. Update the keys or the bucket permissions, and then connect again. -
No files appear in the bucket
Every Push … to Amazon S3 setting is off by default. Turn on each record type you want to export, and check that Only push … created after isn’t set to a future date. Files are written every 5 minutes.
Need Help?
If you need additional assistance:
- Use Ask Pippen, our AI agent, located at the top of the platform page.
- Submit a support request with as much relevant detail as possible. Learn how to submit a request.
We’re here to help you succeed with your operations.
Comments
0 comments