Documentation

Welcome to Retool! We're a fast way to build custom internal software.

You'll find the 5 minute demo, quickstart guide, and documentation for each of our connectors and components here. If you've got any questions -- chat with us on the bottom right!

Get Started    Guides

Google Cloud Storage Integration

Configuring Google Cloud Storage (GCS)

1. Get Google Cloud Credentials through a Service Account

For Service Account authentication, follow Google's documentation here to obtain your private key: https://cloud.google.com/docs/authentication/getting-started

You'll want to configure the Service Account with these permissions:

Make sure to export as JSON!

2. Add to Retool

Create a new resource in Retool, and select "Google Cloud Storage" as the type. Enter a label by which you want to refer to this integration. If you're using Service Account authentication, enter your service account private key in the box provided Press "Save" when you're done.
Resources > Add > Google Cloud Storage

3. Configuring Your Bucket

If you want to be able to upload files to a GCS Bucket you'll have to configure the CORS feature in GCS. For more info see here: https://cloud.google.com/storage/docs/configuring-cors

Here's an example of a JSON corse-file that you might use to enable Retool to access your Google Cloud Storage bucket.

[
    {
      "origin": ["https://*.tryretool.com"],
      "responseHeader": ["Content-Type", "x-goog-acl"],
      "method": ["GET", "HEAD","POST", "PUT", "DELETE"],
      "maxAgeSeconds": 3600
    }
]

And then you can run the following command to set the CORS setting on the bucket.

gsutil cors set cors-file.json gs://your-bucket-name

Downloading and authenticating gsutil

First install gsutil from here: https://cloud.google.com/storage/docs/quickstart-gsutil

After that, you'll want to run gcloud init and then login into your Google Cloud account

4. Create Queries

You can now select your newly-created GCS resource from the Resource dropdown when creating queries in your Retool apps.

Many of the operations are directly transferrable from our S3 Integration, however see below for an example of a Filepicker uploading files to GCS.

Google Cloud Storage Integration


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.