Change the region of the Google Compute Engine project once it is deployed

google-cloud-platformgoogle-compute-engine

I host my node.js app and the MySQL database on Google Compute Engine. However, I would like to change the region of the instance and the whole project to another one, although my web app is fully running right now.

It seems that there is no section that helps me change the region/zone.

Can I still change it after deploying it? Or should I create another project and host the app and database from scratch again?

Best Answer

You can move an instance between zones (even if they are in different regions) by using the gcloud command line tool.

gcloud compute instances move example-instance \
  --zone us-central1-a --destination-zone us-east1-b
Related Topic