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:

To activate the GCP service account:

  1. From the gcloud CLI, run the following command:

    gcloud auth activate-service-account --key-file=<KEY_FILE>

    Where:

    Copy
    $ gcloud auth activate-service-account --key-file="C:\tenablecs-0cf0be2a244e.json"
    Activated service account credentials for: []
  2. 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