This article outlines a series of steps to do the following:
- Create a new Project
- Create a new Service account
- Create Role and Add permissions
- Create Key for Service Account to download .json file
- Authorizing BigQuery on Pronto
Pre-requisite
- Pronto Admin rights
- Google Cloud Platform Admin rights
- Login to Google BigQuery: https://cloud.google.com/bigquery
- Next Click on the Project selection button.
- Click on the [NEW PROJECT] button.
- You can use the default settings returned for the New Project or modify the names if needed, click the [CREATE] button to continue.
- Select the newly selected project name from the project selection box.
- Create a service account and key associated for BigQuery Integration and store it. You will not be able to access this file again.
- Click on the [CREATE SERVICE ACCOUNT] button.
- Add values for the service account.
For this example we used these values:
Service account name: ProntoApp
Service account ID: prontoapp
Service account description: Used for BigQuery integration to the app.gopronto.io instance. - Click the [CREATE AND CONTINUE] button.
- Click on the [Select a role] drop down menu, then click the [MANAGE ROLES] link.
- Click the [+CREATE ROLE] button.
- Next add the {Title} name and then click the [+ADD PERMISSIONS] button to continue.
- The Add permissions selection box appears, use the search bar shown the blue box below.
Make sure the following permissions are granted:
> bigquery.datasets.get
> bigquery.jobs.create
> bigquery.tables.get
> bigquery.tables.getData
> bigquery.tables.list - Add each permission by selecting the [X] checkbox and then clicking the [Add] button. When complete there should be (5) permissions selected.
- Now click the [CREATE] button.
- Next click on the {IAM} menu, then select [ADD] button.
- Add the service account we created earlier under New principals. Chose the custom role we created earlier under Role. Click the [SAVE] button to continue.
- Next we will create a Key for the Service Account. Go to IAM & Admin / Service Account / Manage keys. Select the Service account that was created earlier. In this example the service account name is: prontoapp@sinuous-vortex-345723.iam.gserviceaccount.com.
- This should bring you to the Key section. Click the [ADD KEY] button and then select [Create new key].
- For the Key type use JSON, and click the [CREATE] button to continue.
- You will be promoted to save a JSON file to your computer. This file will be used to upload to Pronto.
- On Pronto go to Settings - Integrations - BigQuery. Click on the [View details] button.
Next Click on the [Upload File] Button, then choose the {Upload from computer} option. - Once you select the .json file, if the upload is successful, you will see a message on the bottom left of the screen that reads "BigQuery has been authorized successfully".
Comments
0 comments
Please sign in to leave a comment.