Viewer
Scope: Organization
The ability to list and get all resources and their properties
Google Cloud onboarding
Create a service account, connect BigQuery billing exports, and configure your CloudHiro billing settings.
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.
Save the downloaded key for CloudHiro registration.
On your Google console - APIs & Services → credentials → Service account.
Service account name - cloudhiro-costi
Service account ID - cloudhiro-costi
Roles - Viewer (Basic role)
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.
Create your dataset and enable Pricing and Detailed cost exports.
Go to the highest level of your organization to do the export.
On your Google console enter BigQuery
At the SQL workspace, click on the three dots next to your project ID and select"Create dataset"
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.
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.
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
Use the same region as your billing dataset.
Cloud Storage → buckets → Create
Enter the same region as the dataset created.
Edit access → Add principal → Add role "Storage Legacy Bucket Owner"
Keep the project ID, dataset ID, table ID, bucket name, and key ready.
Register here. If using a reseller, use their provided link or add"?partner=[reseller-name]" to the URL.
Enter all your details.
Project ID - the project ID for the billing dataset.
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.
After registering to CloudHiro, confirm the email you got and login.
In CloudHiro navigate - system → settings
Almost at the bottom of the page - add the following fields:
Press"Update" near the bucket name
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
Scope: Organization
The ability to list and get all resources and their properties
Scope: Dataset
Query the dataset for billing data
Scope: Bucket
Create exports from the BigQuery dataset and read the billing data to CloudHiro