Google Cloud Deployment Global Configurations

Applying global configurations will set the specified properties in your active configuration, so that they won't need to be explicitly included in commands executed afterward.

  1. Set the project ID by executing the following command:

    gcloud config set project <PROJECT_ID>

    Where:

    <PROJECT_ID> is the ID related to the project that you will be using. To retrieve the <PROJECT_ID> through the CLI, execute the following command:

    gcloud projects list --filter='name:<PROJECT_NAME>' --format json | jq -r .[].projectId

    Example:

    gcloud projects list --filter="name:Security-ArcsightGCP-Nonprod" --format json | jq -r .[].projectId
  2. Set the region by executing the following command:

    gcloud config set compute/region <REGION_NAME>

    Where:

    <REGION_NAME> is the region where the cluster is going to be deployed. To get the list of existing regions run the following command:

    gcloud compute regions list
Remember to note down all incumbent configuration values in your Google Cloud worksheet