# Integrating with Google Cloud Storage

[Prerequisites](#prerequisites)

[Google Cloud Storage Setup](#google-cloud-storage-setup)\
&#x20;   [Step 1: Create a new bucket (optional)](#step-1-create-a-new-bucket-optional)\
&#x20;   [Step 2: Grant permissions to access the bucket](#step-2-grant-permissions-to-access-the-bucket)

## Prerequisites

To connect Google Cloud Storage to Drivetrain, you need:

* An active Google Cloud Storage account
* A Google Cloud Storage bucket and path of folder containing CSV files.

## Google Cloud Storage Setup <a href="#google-cloud-storage-setup" id="google-cloud-storage-setup"></a>

Drivetrain supports integration with Google Cloud Storage from a read-only external user account. To get started you would need to share the read-only access with <drivetrain@integrations-417606.iam.gserviceaccount.com> service account.

### Step 1 : Create a new bucket (optional) <a href="#step-1-create-a-new-bucket-optional" id="step-1-create-a-new-bucket-optional"></a>

{% hint style="info" %}
If you are granting read access to an existing bucket, proceed directly to Step 2.
{% endhint %}

1. Create a new bucket with name as "Drivetrain Bucket" with US multi region.
2. Create a new folder "Drivetrain Files" under this bucket and move all the CSV files you want to ingest into this folder.

### Step 2: Grant permissions to access the bucket <a href="#step-2-grant-permissions-to-access-the-bucket" id="step-2-grant-permissions-to-access-the-bucket"></a>

To grant an access to external user, (someone who is not listed as an employee in the company), follow these steps:

1. Log in to your Google Cloud account. Open Google Cloud Storage in the Cloud Console, then select the bucket containing the files you want to share.
2. Choose **Permissions** tab and click on **Grant Access**

<figure><img src="/files/oeBW6ZHQKxcdC9Eu5LEm" alt=""><figcaption></figcaption></figure>

3. Add <drivetrain@integrations-417606.iam.gserviceaccount.com> service account to the New principals and assign below mentioned roles and click **Save**
   1. **Storage Legacy Bucket Reader**
   2. **Storage Legacy Object Reader**

<figure><img src="/files/idF4j97uhrTfNgscihdU" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
That’s it! Share the below details with your Customer Success Manager or Data Integrations Manager so that they can get started:

1. Bucket Name
2. Folder Path (where CSV files are stored)
   {% endhint %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://integrations.drivetrain.ai/integration-guide/integrate-with-drivetrain/databases-and-warehouses/integrating-with-google-cloud-storage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
