> ## 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 Source

> How to connect to Google Cloud Storage and configure the GCS source component to read files in your Integrate.io ETL pipeline.

The Google Cloud Storage source reads files from a GCS bucket and feeds them into your pipeline. It supports CSV, TSV, JSON, Excel, Parquet, Raw, and compressed formats.

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 read options (file formats, schema, and more) shared across every file storage provider.

## Connection Setup

### Create a Service Account and JSON Key

**Step 1**

Open the [Google Cloud Console](https://console.cloud.google.com/#/project) and select your project.

**Step 2**

Go to **IAM & Admin > Service Accounts > Create Service Account**.

**Step 3**

Enter a **Service account name** and click **Done**.

![Google Cloud Console service account creation form](https://mintcdn.com/integrateio/XpeHmuMzUiEmfOEz/images/connectivity-and-security/image-164.webp?fit=max\&auto=format\&n=XpeHmuMzUiEmfOEz\&q=85\&s=06b24d4555f85526adacb177a90b0dbf)

**Step 4**

Click the newly created service account and go to the **Keys** tab.

**Step 5**

Click **Add Key > Create New Key**, select **JSON**, and click **Create**. Save the downloaded key file.

### Grant Bucket Access to the Service Account

**Step 1**

Open [Google Cloud Storage](https://console.cloud.google.com/storage) and click the bucket you want to connect.

**Step 2**

Under the **Permissions** tab, click **Grant Access**.

**Step 3**

Enter the service account email in the **New Principals** field.

**Step 4**

Assign the appropriate roles:

| Access level | Roles required |
| :- | :- |
| Read-only (source) | Storage Legacy Bucket Reader, Storage Legacy Object Reader |
| Write (destination) | Storage Legacy Bucket Writer, Storage Legacy Object Reader |

**Step 5**

Click **Save**.

![Granting bucket access with Storage Legacy roles](https://mintcdn.com/integrateio/XpeHmuMzUiEmfOEz/images/connectivity-and-security/image-165.webp?fit=max\&auto=format\&n=XpeHmuMzUiEmfOEz\&q=85\&s=8fc77c64d0d8e9c8a45c0a918e73d833)

### Create the Connection in Integrate.io ETL

**Step 1**

Click the **Connections** icon (lightning bolt) in the top-left menu.

**Step 2**

Click **New connection**.

![New connection button in the Connections menu](https://mintcdn.com/integrateio/XpeHmuMzUiEmfOEz/images/connectivity-and-security/image-166.webp?fit=max\&auto=format\&n=XpeHmuMzUiEmfOEz\&q=85\&s=267c0e0f3b1196ce34566fcbf7afa722)

**Step 3**

Select **Google Cloud Storage**.

![Selecting Google Cloud Storage from the connection type list](https://mintcdn.com/integrateio/XpeHmuMzUiEmfOEz/images/connectivity-and-security/image-167.webp?fit=max\&auto=format\&n=XpeHmuMzUiEmfOEz\&q=85\&s=51003641fef24f550f44e9fda4dcee44)

**Step 4**

Name the connection and upload the JSON key file.

![Google Cloud Storage connection form with JSON key upload](https://mintcdn.com/integrateio/XpeHmuMzUiEmfOEz/images/connectivity-and-security/image-168.webp?fit=max\&auto=format\&n=XpeHmuMzUiEmfOEz\&q=85\&s=7beb0d935d3b16e727e3012f33317543)

**Step 5**

Click **Test Connection** to verify the credentials, then click **Create connection**.

![Test Connection and Create connection buttons](https://mintcdn.com/integrateio/XpeHmuMzUiEmfOEz/images/connectivity-and-security/image-169.webp?fit=max\&auto=format\&n=XpeHmuMzUiEmfOEz\&q=85\&s=5705651c2f2f2928ee0cbc6dceaaea00)

***

## Source Configuration

### Connection

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

### Bucket

Enter the name of the GCS bucket that contains your source files.

### Source Path

The path to the input file or pattern within the bucket.

| Example | Description |
| :- | :- |
| `sales/2015/01/log.csv` | A single file |
| `sales/2015/{01,02}/` | A pattern matching multiple folders |

> [!NOTE]
>
> GCS does not support folder paths (e.g. `sales/2015/01/`). Use a pattern or a single file path instead. You can use wildcard characters for [pattern globbing](https://www.integrate.io/docs/etl/using-pattern-matching-in-source-component-paths.md).

File and directory names beginning with an underscore (`_`) or a dot (`.`) are ignored.

<Snippet file="snippets/file-storage-source-format.mdx" />

### Source Action

> [!NOTE]
>
> All four source actions are available for Google Cloud Storage. When using **Move processed files**, the **Append string to filename** option is supported.

<Snippet file="snippets/file-storage-source-action.mdx" />

<Snippet file="snippets/file-storage-source-tail.mdx" />

***

## FAQ

**What permissions does the service account need for a source-only connection?**

Storage Legacy Bucket Reader and Storage Legacy Object Reader. If you also write to GCS (destination component), add Storage Legacy Bucket Writer.

**Why can't I use a folder path like `sales/2015/01/`?**

GCS does not support folder-based listing in the same way S3 does. Use a pattern such as `sales/2015/01/*` or a specific file path instead.

**Can I connect to a bucket in a different GCP project?**

Yes, as long as the service account has been granted the appropriate roles on that bucket.

***

## Related

> [card] [Google Cloud Storage Destination](https://www.integrate.io/docs/etl/using-components-google-cloud-storage-destination.md)

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

> [card] [Pattern Matching in Source Paths](https://www.integrate.io/docs/etl/using-pattern-matching-in-source-component-paths.md)

> [card] [Reading File Storage Data Incrementally](https://www.integrate.io/docs/etl/how-do-i-read-data-from-file-storage-incrementally.md)

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

> [card] [Selecting File Input Format](https://www.integrate.io/docs/etl/how-do-i-select-my-file-input-format.md)


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