> ## 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: Google Cloud Storage Destination

> How to configure the Google Cloud Storage destination component to write files to a GCS bucket in your Integrate.io ETL pipeline.

The Google Cloud Storage destination writes pipeline output to a GCS bucket. It supports CSV, TSV, JSON, Parquet, 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 [Google Cloud Storage Source](https://www.integrate.io/docs/etl/using-components-google-cloud-storage-source.md#connection-setup) for steps to create a service account, grant bucket access, and set up the connection in Integrate.io ETL. For a destination connection, the service account needs **Storage Legacy Bucket Writer** and **Storage Legacy Object Reader** roles on the target bucket.

***

## Destination Configuration

### Connection

Select your Google Cloud Storage connection from the dropdown, or create a new one.

### Bucket

Enter the name of the GCS 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 service account need for a destination connection?**

Storage Legacy Bucket Writer and Storage Legacy Object Reader on the target bucket.

**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 service accounts, or even different GCP projects.

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

Yes. All five destination action options (fail if exists, delete and recreate, replace files, copy to existing directory, copy to new directory) are available for GCS.

***

## Related

> [card] [Google Cloud Storage Source](https://www.integrate.io/docs/etl/using-components-google-cloud-storage-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.