WARNING: When running this quickstart, you might experience some issues with cloud resource limits. Please, verify your quotas before proceeding.
Make sure to have previously installed Google Cloud SDK.
First, you need to retrieve the credentials needed for Terraform to manage your Google Cloud resources:
$ gcloud auth login
$ gcloud auth application-default login
If you want to use GCP Service Account key instead of GCP SDK, uncomment the line as shown below in desired_cluster_profile
and update it with the path to the ssh key file:
...
gcp_credentials_key_file = "/PATH/YOUR_GCP_SERVICE_ACCOUNT_KEY.json"
...
Next, you need to setup SSH as per official GCP documentation if you setup Google Cloud SDK or Google Cloud Service Account.
Add the SSH private key:
$ ssh-add ~/.ssh/google_compute_engine
Later, you will be asked to add the SSH public key to the Terraform cluster profile.
Let's move on to infrastructure configuration.