To open port 80 globally for all VMs on google cloud project, run
gcloud compute firewall-rules create allow-port80-all --allow tcp:80 --source-ranges 0.0.0.0/0 --network default
To open port 80 globally for all VMs on google cloud project, run
gcloud compute firewall-rules create allow-port80-all --allow tcp:80 --source-ranges 0.0.0.0/0 --network default
To get SSH access to a Google Compute VM using gcloud command line tool, run
gcloud compute --project "PROJECT_NAME_JERE" ssh --zone "ZONE_HERE" "VM_NAME_HERE"
To list all instances, run
gcloud compute instances list
gcloud components
gcloud components list gcloud components install beta gcloud components update beta
List current gcloud config
gcloud config list
Set a region
gcloud config set compute/zone us-west2-b
Config store in
cat ~/.config/gcloud/configurations/config_default
Swiitch between multiple gcloud users
gcloud config configurations activate default gcloud config configurations activate NAME_HERE