GCP
Connect GCP to bring your cloud spend into Cloud & AI Cost Management.
Before You Start
To ensure a smooth and error-free setup experience, set up GCP Billing Export before launching the Harness wizard. This will allow you to progress through the setup without delays or missing prerequisites.
Why is Billing Export required?
Harness Cloud & AI Cost Management (CACM) analyzes your cloud spending by accessing detailed billing data from your GCP account. The billing export automatically sends your cost and usage data to BigQuery, where Harness can securely read it.
Step 1: Set Up the Billing Export
Go to Billing → Billing export.
Enable Export detailed billing data to BigQuery.
Choose a billing-enabled project and dataset.
Enable:
📅 Daily cost detail
📊 Export type:
Detailed usage cost data
Note the Dataset Name and Table Name for the wizard.
More Help → GCP Billing Export Guide
Step 2: Grant Permissions
Go to BigQuery → Your Project → Dataset.
Click Share Dataset.
Add the following service account as a Viewer:
<account-id>@<project-id>.iam.gserviceaccount.com
TIME FOR DATA DELIVERY
It may take up to 24 hours for GCP to begin delivering cost and usage data. You can still proceed through the wizard, but the connection test may fail if data isn’t yet available.
In the meantime, explore the optional requirements and feature integrations available in Harness CACM, these will be available to select in your Choose Requirements step of the connection wizard:
Interactive Guide
Connect your GCP account to Harness using the connector wizard. Watch the walkthrough below, or follow the Step-by-Step Guide for the full detail on each step.
Step-by-Step Guide
Step 1: Add GCP Account Details
In the wizard, enter a name for your connector (e.g.,
gcp-demo-prod).Specify Project ID.
(Optional) Add a description and tags to help identify this connector later.
Click Continue.
Step 2: Select or Create a Billing Export
Cloud Billing export to BigQuery enables you to export detailed Google Cloud billing data (such as usage and cost estimate data) automatically throughout the day to a BigQuery dataset that you specify.
If your Billing Export already exists, select it from the list.
If not, return to GCP and follow the steps in the Before You Start section to create one.
Once the Billing Export appears in the list, select it and click Continue.
Step 3: Choose Requirements
Cost Visibility is selected by default and is required.
(Optional) You can enable any of the following features (they can also be added later):
Resource Inventory Management
Optimization by AutoStopping. If selected, you can select granular permissions for AutoStopping by clicking Continue
Cloud Governance
Click Continue.
Step 4: Authentication (Conditional)
If you have selected Optimization by AutoStopping or Cloud Governance, in previous step, you can set up Authentication. If not selected, this step will not be prompted.
You can enable authentication for your GCP account via
Service Account with Custom Role: Created with custom permissions
OIDC Authentication: Federated access with no stored credentials
Step 5: Grant Permissions
Based on what you selected in Step 3 - Choose Requirements, you will be prompted to grant permissions to your service account alongwith the steps to be followed.
Step 6: Verify the Connection
Harness will attempt to validate the connection using your inputs.
If this step fails, it's usually because GCP has not yet delivered the first billing export.
Wait up to 24 hours after setting up the billing export before trying again.
Once validated, click Finish Setup.
🎉 You’ve now connected your GCP account and enabled cost visibility in Harness.
Next Steps
Once your data is flowing, explore the tools available in Harness CACM to help you manage and reduce your cloud spend:
View and Create Perspectives to visualize cloud usage and trends.
Create Budgets and Alerts to monitor spend thresholds.
Use BI Dashboards to visualize cloud usage and trends.
Revisit optional integrations:
Last updated
Was this helpful?