0

Looking for a quick gcloud example to change an instances type. For example I would like to change an instance from 32vcpus/64GB RAM to 2vcpus/4GB RAM. I know how to do it in the web interface.

Adrián
  • 188
  • 2
Faraz H
  • 3
  • 1

1 Answers1

1

You can change the machine type to your requirements by using the command:

gcloud compute instances set-machine-type <instance-name> --custom-cpu=2  
--custom-memory=4 --zone <instance-zone>

You can find further information and instructions in the following documentation.

JMD
  • 283
  • 1
  • 5