> For the complete documentation index, see [llms.txt](https://integrations.drivetrain.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://integrations.drivetrain.ai/integration-guide/readme/others/integrating-with-amazon-s3.md).

# Integrating with Amazon S3

Upload files to a Drivetrain-provided Amazon S3 folder with an access key or an IAM role. Covers supported file formats.

Use this page when **you upload files to an S3 bucket that Drivetrain provides**. If Drivetrain should instead read files from **your own** S3 bucket, see [Integrating with S3](https://integrations.drivetrain.ai/integration-guide/readme/databases-and-warehouses/integrating-with-s3.md).

Your Drivetrain team sets this up and gives you a dedicated folder in Drivetrain's bucket. There are two ways to get write access.

### Method 1: Access key

Your Drivetrain team gives you:

* the **S3 bucket name** and your **folder path**
* an **AWS Access Key ID** and **Secret Access Key**

Configure your system, ETL tool or script with these four values, and upload your files to the folder path exactly as shared.

### Method 2: IAM role (recommended)

This avoids long-lived keys.

1. Send your **AWS Account ID** to your Drivetrain team.
2. Drivetrain creates an IAM role that your account can assume, with permission to upload to your folder, and shares the **bucket name**, **folder path** and role details.
3. Configure your system to assume that role and upload files to the folder path.

### File requirements

* Supported formats: CSV, Excel (XLSX, XLS), JSON, Parquet, and ZIP archives.
* Each sync reloads the files in full.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://integrations.drivetrain.ai/integration-guide/readme/others/integrating-with-amazon-s3.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
