Connect Google Cloud Billing Account
This topic describes how to connect your Google Cloud Billing Account to Billing Engine.
Prerequisites
- Permissions to create Service Accounts.
- Billing Account Administrator and BigQuery User permissions. These should be linked to a Google project containing a BigQuery dataset that Billing Engine needs to read your Google Cloud Billing data.
Step 1: Log in to your Google Cloud Account
- In the Spot console, click Billing Engine > Administration. Enter an account name and click Create Account.
- Select Google Cloud > FinOps Products > Next.
- Click Log in to your Google Cloud Account and log in.
Step 2: Create a Service Account
Create a service account for Spot and grant it the Viewer role. This allows Spot to access and analyze cost and usage data in your Google Cloud account.
- In the Spot console, copy the service account name, for example spotinst-role-79885e98.
- In the Google Cloud console, select the project you are connecting to and create a service account.
- Paste the name you copied from the Spot console into Service Account Name. The service account ID is automatically created. Click CREATE.
- In Service Account Permissions, select Role: Viewer. Click DONE.
Step 3: Create and Upload a Service Key
- In the Google Cloud console, create a service account key.
- Save the JSON with the service key.
- Click Upload Saved JSON File and upload the service key. Click Next.
Step 4: Enter the BigQuery Dataset and Table ID
To connect the BigQuery data set and table:
- Export your Google Billing Data if you haven’t already exported your cloud billing data to BigQuery.
- In the Google Cloud console, go to the BigQuery page for your project.
- Copy the BigQuery data set ID and table ID.
- In the Billing Engine console, paste the data set ID and table ID.
- Click Connect Account.