This is an old revision of the document!
https://cloud.google.com/free/docs/aws-azure-gcp-service-comparison
Compute Engine:
For ssh access, best thing is to enable 'OS Login, check this link
gcloud compute os-login ssh-keys add –key “….”
TERRAFORM:
/home/jsantosa/.ssh/known_hosts
First install gcp sdk:
cd your-project python3 -m venv env source env/bin/activate tar -xf google-cloud-sdk-352.0.0-linux-x86_64.tar.gz ./google-cloud-sdk/install.sh # exit the shell so the .bashrc changes take effect. deactivate
Now authenticate your project and it will generate a json file that will be used in the tf provider:
gcloud auth application-default login --project <my-project-id-not-name>
Now we define the provider.tf (+ terraform init, terraform plan)
provider "google" {
credentials = "/home/myuser/.config/gcloud/application_default_credentials.json"
project = "my-project-id-not-name"
region = "us-east1"
}