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

# Google Cloud Storage

## Credentials

For the credentials, you will need the following:

<Steps>
  <Step>
    The Project ID
  </Step>

  <Step>
    The Service Account Private Key JSON

    <Frame>
      ![](https://alloy-assets.s3.amazonaws.com/alloy-docs/embedded/destinations/google-cloud-storage/1.png)
    </Frame>
  </Step>
</Steps>

## How to get the Project ID

<Steps>
  <Step>
    Go to your Google Cloud Console's [projects list](https://console.cloud.google.com/cloud-resource-manager?pli=1).
  </Step>

  <Step>
    Choose the Project ID of the project where your Cloud Storage is in.

    <Frame>
      ![](https://alloy-assets.s3.amazonaws.com/alloy-docs/embedded/destinations/google-cloud-storage/2.png)
    </Frame>
  </Step>
</Steps>

## How to get the Service Account Private Key JSON

<Steps>
  <Step>
    If you don’t have a service account yet, create a service account following [Google’s Documentation](https://cloud.google.com/iam/docs/creating-managing-service-accounts#creating).
  </Step>

  <Step>
    Then follow the steps in [Google’s Documentation](https://cloud.google.com/iam/docs/creating-managing-service-account-keys#creating) on how to create a private key in JSON format. See sample below showing how a private key in JSON format looks like.

    <Frame>
      ![](https://alloy-assets.s3.amazonaws.com/alloy-docs/embedded/destinations/google-cloud-storage/3.png)
    </Frame>
  </Step>
</Steps>

## Configuring the Service Account

<Steps>
  <Step>
    Go to the Cloud Storage in your Google Cloud Console
  </Step>

  <Step>
    Click on your desired Bucket
  </Step>

  <Step>
    Then click on Permissions and click on Grant Access
  </Step>

  <Step>
    Input the Service Account under New Principals
  </Step>

  <Step>
    In the **Role** field, search for the roles **Storage Legacy Bucket Owner** and **Storage Legacy Object Owner** and select that. Then click on the **Save** button.
  </Step>
</Steps>

## Complete Block Credentials

<Steps>
  <Step>
    Input the **Project ID** for your project found in the previous steps.
  </Step>

  <Step>
    Then copy the whole contents in the JSON file created in the previous steps into the **Service Account Private Key JSON** field and then click on **Validate**.
  </Step>
</Steps>
