Activate the GCP Service Account
After creating the service account for Tenable Cloud Security, you must authorize this service account to access the Google Cloud resources using the Google Cloud CLI. Use the gcloud auth activate-service-account command to import the credentials from the JSON file with the private authorization key for the service account and activate it for use.
Before you begin:
-
Install the gcloud CLI.
For more information, see Install the gcloud CLI.
To activate the GCP service account:
-
From the gcloud CLI, run the following command:
gcloud auth activate-service-account --key-file=<KEY_FILE>
Where:
-
KEY_FILE is the path to the JSON key file for the service account. For more information, see Create a GCP Service Account.
Copy$ gcloud auth activate-service-account --key-file="C:\tenablecs-0cf0be2a244e.json"
Activated service account credentials for: [[email protected]] -
-
Verify that you can list the GCP project with the service account credentials:
gcloud projects list --sort-by=projectId
Copy$ gcloud projects list --sort-by=projectId
PROJECT_ID NAME PROJECT_NUMBER
tenablecs CS-GoogleProject XXXXXXXXXXXX