Skip to main content
This page sets up a Google Cloud Storage (GCS) connection that authenticates as a service account with a JSON key.

Before you begin

  • Permission to create service accounts and service account keys in the Google Cloud project that holds your bucket.
  • Permission to grant IAM roles on the bucket.
  • Permission to add data connections in Datafold.

Set up Google Cloud Storage

1

Create a service account

  1. In the Google Cloud console, select the project you want to connect from the project picker next to the search bar. If you don’t see the project, you may need to switch accounts.
  2. Go to IAM & Admin → Service Accounts.
  3. Create a service account named datafold.
2

Grant access to your bucket

In Cloud Storage → Buckets, open the bucket, go to the Permissions tab and grant the datafold service account the Storage Object Admin role on the bucket. Granting it on the bucket rather than the project limits Datafold to this bucket. If Datafold only reads files, Storage Object Viewer is enough.
3

Create a service account key

  1. In IAM & Admin → Service Accounts, click the datafold service account.
  2. Open the Keys tab and click Add Key → Create new key.
  3. Select JSON and click Create. The key file downloads to your computer.

Network access

If your Google Cloud project only accepts connections from allowlisted IP addresses or is only reachable over a private network, see Securing connections for the options Datafold supports.

Add the connection in Datafold

Go to Settings → Integrations → Data Connections, click Add new integration and choose Google Cloud Storage. Click Save.