Skip to content
Monda Help Center home
Monda Help Center home

Google Cloud Storage (GCS) Source

In order to setup Google Cloud Storage as a data source, you need admin access to IAM and Google Cloud Storage (GCS).

Setting up GCS and IAM user

  1. Create a GCS bucket (or use an existing one) to store the data you want to share with Monda. To create a new GCS bucket, you can find instructions in the Cloud Storage documentation.

  2. Populate the data for each distinct data product into a separate folder within the bucket.

  3. Create a custom IAM role for Monda with the following settings and permissions:

    • Stage: GA

    • Permissions:

      • storage.buckets.get

      • storage.objects.get

      • storage.objects.list

    • Sample custom role (JSON):

      { "title": "CustomStorageRole", "description": "Custom role for accessing specific Cloud Storage bucket", "stage": "GA", "includedPermissions": [ "storage.buckets.get", "storage.objects.get", "storage.objects.list" ] }
  4. Create a GCP service account for Monda.

  5. Assign the custom IAM role you just created to this service account.

  6. Copy the service account email - you’ll need it shortly.

  7. Generate a service account key (JSON).

  8. Grant access to the bucket for the service account.

    • Go to your GCS bucket permissions

    • Under Add principals, paste the service account email

    • Under Assign roles, select the custom role you created

Connect the bucket to Monda

  1. In your Provider Portal, go to Onboard > Sources > Add Connection.

  2. Select GCS Bucket from the dropdown menu.

    • Admins must provide the following information:

      • GCS Bucket Name: the name of your GCS bucket

      • Key: the JSON key file you downloaded earlier

  3. Click Create. After the connection is established, you can test it via the Test Connection button.

Google Cloud Storage set up source.gif
GCS database setup example.png

FAQ

Can I use an existing service account?

Yes, as long as:

  • The service account has the correct permissions.

  • You have access to a valid JSON key file.

  • You grant the service account access to the specific GCS bucket.

What happens if the service account key expires, or is deleted?

Monda will no longer be able to connect to your data. You'll need to:

  1. Generate a new key.

  2. Update the connection in the Provider Portal with the new key file.

Can I use the same service account for multiple GCS buckets?

Yes. As long as the service account has the necessary permissions on each bucket, it can be reused. However, each bucket still requires a separate connection in Monda.

Does Monda support folders inside GCS buckets?

Yes. For the best results:

  • Store each data product in its own folder.

  • Make sure all files in a folder have the same schema (same columns and types). Learn more about preparing your data in the Data Sources Overview guide.

Can I create a connection using an API instead of the UI (Provider Portal)?

Yes! See our API documentation for creating and managing your connections programmatically.