All onboarding guides

Google Cloud onboarding

Connect Google Cloud to CloudHiro.

Create a service account, connect BigQuery billing exports, and configure your CloudHiro billing settings.

Before you start

Have access to create a service account, a BigQuery billing dataset, and a Cloud Storage bucket.

Use the same region for the billing dataset and storage bucket.

Start setup
1

Create a service account

Save the downloaded key for CloudHiro registration.

1

On your Google console - APIs & Services → credentials → Service account.

2

Service account name - cloudhiro-costi

3

Service account ID - cloudhiro-costi

4

Roles - Viewer (Basic role)

5

Select KEYS, ADD KEY, and click on"Create new key". The key will be downloaded and stored locally on your computer. Save it for later (A). The same key you downloaded is the key you will need later at CloudHiro's Registration page. The key can also be updated later.

2

Enable BigQuery billing exports

Create your dataset and enable Pricing and Detailed cost exports.

1

Go to the highest level of your organization to do the export.

2

On your Google console enter BigQuery

3

At the SQL workspace, click on the three dots next to your project ID and select"Create dataset"

4

Enter dataset ID select type and region, then create a dataset. The datasetID will be needed later in the configuration of CloudHiro and for the billing.

5

On your Google console enter the billing. In the navigation menu click on export data and make sure you're at BigQuery export. Enable data export for Pricing and Detailed cost with the project you're in and the dataset you created.

6

Back to BigQuery - at the navigation menu click on the three dots next to your created dataset and"share" → Add principal → enter the service account you have created before. Add role - BigQuery Data Owner

3

Create a storage bucket

Use the same region as your billing dataset.

1

Cloud Storage → buckets → Create

2

Enter the same region as the dataset created.

3

Edit access → Add principal → Add role "Storage Legacy Bucket Owner"

4

Register & configure CloudHiro

Keep the project ID, dataset ID, table ID, bucket name, and key ready.

1

Register here. If using a reseller, use their provided link or add"?partner=[reseller-name]" to the URL.

2

Enter all your details.

3

Project ID - the project ID for the billing dataset.

4

ServiceAccountKey - The key you have created in the service account and downloaded to your computer. You can create a new one if you haven't downloaded yet.

5

After registering to CloudHiro, confirm the email you got and login.

6

In CloudHiro navigate - system → settings

7

Almost at the bottom of the page - add the following fields:

  • Dataset ID
  • Table ID (start with"gcp_billing_export_resource" and ends with the billing account id)
  • Bucket name
8

Press"Update" near the bucket name

5

Review your setup with CloudHiro

Tick off each item as you complete it. Checkmarks apply to this page visit only.

Contact your CloudHiro representative to validate the connection and walk through your reports.

Review the role scopes

This setup includes BigQuery Data Owner and Storage Legacy Bucket Owner roles; review the scopes in the reference below.
Permission reference — roles, scopes & purpose

Viewer

Scope: Organization

The ability to list and get all resources and their properties

BigQuery Data Owner

Scope: Dataset

Query the dataset for billing data

Storage Legacy Bucket Owner

Scope: Bucket

Create exports from the BigQuery dataset and read the billing data to CloudHiro