Connecting to BigQuery on GCP (Google Cloud Platform)

To connect Trevor.io to your Postgres database, login to Trevor and head to the connect BigQuery screen.

You'll need to enter the following fields:

Nickname

This is just a memorable name you choose to give this datasource.  It can be anything you like, e.g. "Our Data Warehouse".

 

 

Region

This field must match the exact location of the data in your BigQuery.

Important: if your data is in "us-east-4", then choosing "US" for this field will not work.  You need to choose "us-east-4".

 

To identify the region for your BigQuery data:

  1. Open up Google Cloud Console and go to the “BigQuery” service page. This can be done by typing “BigQuery” in the search bar.

    Screenshot_2022-09-05_at_16.59.18.png

  2. Click on the dataset you are interested in

    Screenshot_2022-09-05_at_17.01.56.png

  3. Make a note of the “Data location” field value. This is the value which you need to select into the “Region” bar in Trevor

 

JSON Key File

  1. Head to console.cloud.google.com.

  2. Click IAM and Admin in the left panel.

    Screenshot_2022-09-22_at_21.42.08.png

  3. Select Service Accounts from the list.

  4. Click the Create Service Account link (near the top)

    Screenshot_2022-09-22_at_21.42.39.png

  5. You'll need to grant two roles: BigQuery Data Viewer and BigQuery User.

    Screenshot_2022-09-22_at_21.43.56.png

  6. Once you click done, click the email address of your created service account.

  7. Click on the KEYS tab.

  8. Click Add key and select create new key

    Screenshot_2022-09-22_at_21.44.50.png

  9. Select JSON and then click Create.

    Screenshot_2022-09-22_at_21.45.05.png

  10. Once you have your key, upload it to Trevor.io here.

 

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.