Google Cloud Integration
The Google Cloud integration connects to your GCP organization or folder and brings resources into the IDP Catalog, such as Compute Instances, GCS Buckets, Cloud Run services, BigQuery datasets, GKE clusters, and more. Once discovered, entities can be registered as new catalog entries, enriching them with GCP-sourced metadata such as asset type, location, state, and resource identifiers.
Before you begin
The following configurations are needed in Harness and GCP to get the integration running.
Relevant Harness Configurations
- The feature flag
IDP_CATALOG_CD_AUTO_DISCOVERYis enabled. Contact Harness Support to enable it. - You have the required RBAC permissions to manage integrations. All integration operations require the
IDP_INTEGRATION_EDITpermission on theIDP_INTEGRATIONresource type. - A GCP connector is configured in Harness using a service account JSON key. See GCP configurations below for how to obtain the key.
Relevant GCP Configurations
- IAM role: Grant
roles/cloudasset.viewerto your service account at the organization or folder level (not project level) via IAM & Admin. For resource-specific access (e.g., Compute, BigQuery), also grant the relevant viewer roles such asroles/compute.viewerorroles/bigquery.metadataViewerat the same scope. - Service account key: Generate a JSON key for your service account (Keys tab → Add key → Create new key → JSON) and upload it when creating the GCP connector in Harness.
- Cloud Asset API: Enable
cloudasset.googleapis.comon the GCP project associated with the service account.
Enable the Google Cloud Integration
The Google Cloud integration is available at the Account, Organization, and Project levels. Navigate to the appropriate scope of the Internal Developer Portal to add or manage Google Cloud integrations.
1. Navigate to the Integrations Page
-
In Harness, open the Internal Developer Portal.
-
From the left sidebar, click Configure.
-
In the left navigation menu, click Integrations.
Figure 1: Navigation Path of GCP Integration -
On the Integrations page, click + New Integration at the top.
-
Select Google Cloud from the integration type picker. You will be taken to the Auto Discover Google Cloud Integration page.
2. Configure Setup & Connectivity
This section connects Harness IDP to your Google Cloud Platform.
-
Enter a name in the Integration Name field. This name appears on the integration card on the Integrations page (e.g.,
GCP QA Data Integration). -
Click the Choose GCP connector dropdown and select the GCP connector you want to use to pull data into the IDP (e.g.,
idp_automation_gcp_manager).Don't have a GCP connector yet?If no connectors appear in the dropdown, you need to first create a GCP connector in Harness. Once saved, it will appear in the dropdown here.
-
Under Scope Type, select how IDP should scope the resource discovery:
- Organization ID (Default): Discovers resources across your entire GCP organization. Enter your numeric GCP Organization ID (e.g.,
123456789012). - Folder ID: Limits discovery to a specific GCP folder. Enter the numeric Folder ID.
- Organization ID (Default): Discovers resources across your entire GCP organization. Enter your numeric GCP Organization ID (e.g.,
3. Configure Catalog Mapping
This section defines which GCP resources are ingested and how they map to IDP catalog entities.
Click Configure next to Choose resources for ingestion to open the Resource selection panel.
Resources are organized into several categories: Monitoring, Databases, API Gateway, Serverless, CI/CD & Data, Compute Engine, Networking, IAM & Security, Kubernetes, Storage, Resource Manager, Caching, Messaging, and Vertex AI. Use the Choose Resource dropdown at the top of the panel to filter by category.
For each resource you select, three fields are configurable:
- Sync Mode:
Full Refreshre-syncs the entire resource list on every update cycle.Incrementalsyncs only resources that have changed since the last update. - Kind: Select the IDP catalog entity kind that best represents this resource in your catalog.
- Type: The catalog entity type label (e.g.,
compute_instances,gcs_buckets). Pre-filled based on the resource and can be customized.
Once you have made your selections, click Continue to return to the main configuration page.
4. Configure Advanced Settings
The Advanced Settings section controls how frequently IDP syncs with GCP.
-
Select an Update Frequency from the dropdown to control how often IDP polls GCP for new data.
Available options:
10 min,30 min,1 hour,1 day. -
Once all sections are configured, click Confirm & Enable. A confirmation dialog will appear before the changes are applied.
The integration is now enabled and IDP begins syncing data from GCP. Discovered resources appear in the Discovered tab.
Discover and Import GCP Entities
Discovered tab
After the integration runs, all GCP resources detected appear in the Discovered tab. Use the Resource dropdown filter to narrow the list by resource type. If entities do not appear, use the Sync button at the top right to manually refresh.
For each discovered entity, you can see its name, the recommended catalog action, kind, type, and the date it was detected. All discovered GCP resources default to the Register action, which creates a new catalog entity populated with the GCP metadata.
- Bulk Import: Select multiple entities using the checkboxes and click Import selected entities at the bottom of the page to import them all at once.
- Auto Import: Toggle Auto-import future discovered entities in the top right of the Discovered tab to automatically import all future entities without manual review.
Imported tab
The Imported tab displays all GCP entities that have been brought into the catalog. Use the Resource dropdown filter to narrow by resource type.
| Column | Description |
|---|---|
| Google Cloud Entities | The name of the resource from GCP, along with its import status (e.g., Registered). |
| Entity | The linked IDP catalog entity and its ID. |
| Kind | The catalog entity kind (e.g., resource, system). |
| Type | The catalog entity type (e.g., compute_disks). |
| Scope | The Harness account scope the entity belongs to. |
| Imported At | The timestamp when the entity was imported. |
To stop syncing a specific entity without deleting the catalog entity, use the three-dot menu on any row and select Unlink. This stops sync updates while keeping the IDP entity and its existing data intact.
View GCP Entities in the Catalog
Once imported, GCP entities are available in the Catalog section of IDP as standard catalog entities. Each entity's kind and type reflect the selections made during resource configuration.
Open any entity to view its Overview, Relations, and other tabs configured for your entity layout. The entity status (e.g., READY) is sourced directly from GCP.
Ingested Properties
To inspect the raw data ingested from GCP, open the entity and click View YAML → Ingested Properties in the Entity Inspector.
Ingested properties are stored in two sections of the entity YAML:
metadata.integration: Tracks which integrations are linked to this entity, including the entity action (e.g.,REGISTER) and the linked entity UUID.integration_properties.GCP: Contains the GCP-specific data for the entity, including fields such asassetType,createTime,displayName,identifier,location,organization,projects,resourceName,state, and others depending on the resource type.
Manage the Google Cloud Integration
Edit the integration
To update the integration name, switch the GCP connector, change the scope, or modify resource selections, navigate to the Integrations page, find your GCP integration card, and click View. From there, click Configuration to open the edit screen.
Suspend Auto-Discovery
If auto-discovery is suspended, new entities will not appear in the Discovered tab. Existing imported entities remain unchanged in the catalog, and the sync between GCP and their corresponding IDP entities will stop.
To suspend auto-discovery:
- Go to Integrations and open your GCP integration using the View button.
- Click Configuration at the top.
- In the Danger Zone section, click Suspend.
- Confirm the action.
You may re-enable it at any time by following the same steps.