Skip to main content

Connection - Google Cloud​

The Google Cloud Connection stores the project and sign-in settings that these Tasks and Triggers use to connect to Google BigQuery and Google Cloud Storage:

It signs in with a service account JSON key file, not with a user sign-in.

The editor of a Google Cloud Connection

Common settings​

The Common settings tab is the same for every Connection type that has it; see Common settings. A Google Cloud Connection has no Test button, and its Tasks do not use Timeout or Code page.

Connection settings​

The Connection settings tab has no sub-tabs and no Proxy tab. Google Cloud Connections do not use a proxy.

Project ID

The ID of the Google Cloud project. BigQuery Tasks run their queries as jobs in this project, so use a project in which the service account may run jobs, usually your own. To query a public dataset, keep your own project here and name the public tables in the query, for example tables in the "bigquery-public-data" project. The project ID is shown in the Google Cloud console and in BigQuery.

BigQuery with the project list

JSON key path

The path of the service account JSON key file. The Server reads the file when the Connection is saved, and stores its content with the Connection on the Server. So:

  • Enter a path that exists on the computer that runs the VisualCron Server
  • After you replace the key file, open the Connection and save it again

See How to create a JSON key file.

warning

Google Cloud does not let you download a key file again after it is created. If the file is lost, disable the key and create a new one.

warning

The content of the service account key file is stored with the Connection on the Server. Protect access to the Server's settings folder, and give the service account only the roles that the Tasks need.

How to create a JSON key file​

An organization policy can block the creation of service account keys. If key creation is not offered, ask the administrator of the Google Cloud organization to allow key creation for the project.

To create a JSON key file, complete the following steps:

  1. In the Google Cloud console, open IAM & Admin -> Service Accounts for the project.

    The Service accounts page in IAM & Admin

  2. Click Create service account.

  3. Fill in the account details.

    The service account details step

  4. Grant the service account a role that allows what the Tasks do. For Google Cloud Storage, select a role in the Cloud Storage group.

    The step that grants a role to the service account

  5. Open the service account.

  6. Open the Keys tab.

  7. Click Add key -> Create new key.

    The service account details with the Add key button

  8. Select "JSON".

  9. Click Create.

  10. Save the JSON key file that downloads to a folder on the VisualCron Server computer.

  11. Enter the path of the file in JSON key path.

  12. Click OK to save the Connection.

The Connection now signs in with the service account.