GCP service account JSON key with the Compute Viewer role
To connect a GCP project read-only: create a service account, grant it the Compute Viewer and Browser roles on the project and download a JSON key. Control…
To connect a GCP project read-only: create a service account, grant it the Compute Viewer and Browser roles on the project and download a JSON key. Control Cloud connects with that file, reads the inventory through the Google Cloud API and installs nothing; you delete the key anytime.
Create a service account In the Google Cloud console, with the project you want to see selected → IAM & Admin → Service Accounts → Create service account. Give it a name (e.g. "control-cloud-readonly").
Grant read roles On the project, grant it roles/compute.viewer (Compute Engine inventory) and roles/browser (see the project). To also see GKE clusters and Cloud SQL, add roles/container.viewer and roles/cloudsql.viewer. Starting and stopping VMs from Control Cloud needs roles/compute.instanceAdmin.v1, or a custom role with compute.instances.start and compute.instances.stop.
Enable the APIs In APIs & Services → Library, enable the Compute Engine API and the Cloud Resource Manager API on the same project. Compute Engine requires the project to have a billing account linked.
Download the JSON key Open the service account → Keys → Add key → Create new key → JSON. The file downloads only once. If your organization blocks keys with iam.disableServiceAccountKeyCreation (enforced by default in organizations created since May 2024), Control Cloud also accepts a Workload Identity Federation config.
Paste the JSON in Control Cloud In the app → Connections → Google Cloud Platform → paste the whole content of the .json, from { to }. The Project ID comes from the file. Save: Control Cloud discovers the project’s regions and draws VMs, networks, disks and IPs on the map, with the key encrypted in the vault.