Connect Google Cloud
Create a Viewer service account, enable the inventory APIs, and add its JSON key in Cloud Agentra. It takes about 5 minutes, and access is read-only by default.
- A GCP project where you can create a service account and enable APIs
- About 5 minutes to complete
- Read-only — the Viewer role changes nothing in your project
Faster — upload to auto-fill: in the Add-account form you can upload your GCP service-account .json key, and Cloud Agentra fills the Project ID and the Service Account JSON. The file is read in your browser and never uploaded; the Account Label defaults to the file name (editable). Then pick a region, Test Connection and Save.
Get your credentials
Keep the downloaded JSON key safe — anyone with it can read your project. You can delete and re-create keys any time on the service account.
Test Connection verifies the key before anything is saved. Once Save Account succeeds, the account is connected and you can start running read-only assessments right away.
Required fields
You will paste the JSON key contents when adding the account in Settings.
| Field | Where to find it |
|---|---|
| Project ID | GCP console top bar → project selector |
| JSON key | Service account → Keys → Add key → JSON |
Already connected this account? Where it keeps state can still be changed, from Settings → Migration — a supervised move that backs state up, copies it, verifies it and rolls back if anything fails. See State and backends.
Troubleshooting
| Problem | What to check |
|---|---|
| Invalid key | Paste the full JSON key file contents, and confirm the service account still exists. |
| API not enabled | Enable Cloud Asset Inventory and Cloud Resource Manager — Cloud Agentra names the exact API to enable. |
| Permission denied | Confirm the service account has the Viewer role on the project. |
- Test your connection — Verify credentials before running anything.
- Security & access — How credentials are encrypted and scoped.