Google Cloud Connector
The Google Cloud connector ingests cloud resources from a Google Cloud Platform organization, folder, or project into the Catalog. It runs through the ibdm binary in one of two modes:
- Sync — pull-based: enumerates resources via the Cloud Asset API and exits. Only resource metadata is retrieved (the
RESOURCEcontent type) — IAM policies, org policies, and other Cloud Asset content types are not synced. - Run — push-based: subscribes to a Pub/Sub subscription fed by a Cloud Asset Feed. On delete events, the emitted item carries the last-known (
priorAsset) resource snapshot, since there is no current asset to report.
Commands
ibdm sync gcp --mapping-file <path to mapping file or folder>
ibdm run gcp --mapping-file <path to mapping file or folder>
Configuration
| Variable | Required | Description |
|---|---|---|
GOOGLE_CLOUD_SYNC_PARENT | Sync | Name of the organization, folder, or project containing the resources to sync. Must be one of organizations/{org-number}, folders/{folder-number}, projects/{project-id}, or projects/{project-number}. |
GOOGLE_CLOUD_PUBSUB_PROJECT | Run | Project hosting the Pub/Sub subscription. |
GOOGLE_CLOUD_PUBSUB_SUBSCRIPTION | Run | Name of the Pub/Sub subscription the source consumes events from. |
GOOGLE_APPLICATION_CREDENTIALS | Optional | Path to a service-account key file, used by Application Default Credentials. |
Authentication
The source authenticates through Application Default Credentials (ADC). You can supply credentials in any of the standard ADC ways, including pointing GOOGLE_APPLICATION_CREDENTIALS at a service-account key file. The principal must have read access to the resources you intend to ingest.
See also
- Connectors Installation Overview
- Azure Connector — sibling cloud source.