T
Techeia
Back to Blog

Google Cloud Platform Howto

March 21, 2020
By Techeia


To start an Instance:

gcloud compute instances start projects/trampotestproject/zones/us-east1-c/instances/instance-1

connect ssh:

gcloud compute ssh trampo-test-instance-1 --zone us-east1-c


Stop instance:

gcloud compute instances stop projects/trampotestproject/zones/us-east1-c/instances/instance-1

To resize the disk size of a cloud VM:


Command format: 
gcloud compute disks resize [DISK_NAME] --size [DISK_SIZE]
Example:
gcloud compute disks resize temp-translation-disk-11jlz --size 1024