> ## Documentation Index
> Fetch the complete documentation index at: https://www.integrate.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ETL: Amazon S3 Destination

> How to configure the Amazon S3 destination component to write files to an S3 bucket in your Integrate.io ETL pipeline.

The Amazon S3 destination writes pipeline output to an S3 bucket. It supports CSV, TSV, JSON, Parquet, XML, Excel (`.xlsx`), and Fixed width output formats, with optional compression and PGP encryption.

Once your connection is set up, see [File Storage Options](https://www.integrate.io/docs/etl/file-storage-options.md) for the full set of write options (output formats, compression, PGP, and more) shared across every file storage provider.

## Connection Setup

See [Amazon S3 Source](https://www.integrate.io/docs/etl/using-components-amazon-s3-source.md#connection-setup) for steps to create an IAM user, attach the required policy, and set up the connection in Integrate.io ETL. For a destination pipeline, the IAM user needs `s3:ListBucket`, `s3:PutObject`, `s3:GetObject`, and `s3:DeleteObject` on the target bucket.

***

## Destination Configuration

### Connection

Select your Amazon S3 connection from the dropdown, or create a new one.

### Bucket

Enter the name of the S3 bucket where output files will be written.

### Target Directory

The path within the bucket where output files are created. One or more files will be written to this directory. New destination components default to **Copy into the existing directory**, so the directory must already exist before the job runs. To write to a new directory on each run, select a different [destination action](#destination-action) and use [package variables](https://www.integrate.io/docs/etl/using-and-setting-variables-in-your-packages.md) to generate unique directory names (e.g. `/output/${_JOB_ID}`).

<Snippet file="snippets/file-storage-destination-options.mdx" />

***

## FAQ

**What permissions does the IAM user need for a destination pipeline?**

The IAM user needs `s3:ListBucket` on the bucket and `s3:PutObject`, `s3:GetObject`, and `s3:DeleteObject` on its objects. All three object actions are required because Integrate.io finalizes output files with a copy-and-delete operation.

**Can I write to a different bucket than the one I read from?**

Yes. The source and destination components each have their own connection and bucket settings. You can use different buckets, different IAM users, or even different AWS accounts.

**Does S3 support all destination action options?**

Yes. All five destination action options are available for Amazon S3.

***

## Related

> [card] [Amazon S3 Source](https://www.integrate.io/docs/etl/using-components-amazon-s3-source.md)

> [card] [File Storage Options](https://www.integrate.io/docs/etl/file-storage-options.md)

> [card] [Using Variables in Packages](https://www.integrate.io/docs/etl/using-and-setting-variables-in-your-packages.md)

> [card] [PGP Keys](https://www.integrate.io/docs/etl/pgp-keys-account-level.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.