Start and Stop VMs in GCP Using HTTP Triggered Cloud Functions with Python
Start and Stop VMs in GCP Using HTTP Triggered Cloud Functions with Python

Summary

In many cases you want to start or stop a VM instance in GCP very quickly. You can do this by using Cloud Functions and a few lines of Python.

In this article I’ll be showing you how you can do that with a very easy and simple to follow instructions.

The idea behind this was that I wanted to easily let my family start and stop the small Minecraft server that I have built for us, so that any time the kids want to play, the server can be started easily without anyone logging into the Cloud Console.

So I thought of finding a way to let them just hit a simple URL which in turn will do the job. That’s where Cloud Functions on GCP come in.

So in this article, I’ll be showing you the following:

  • The prerequisites prior to setting up your Cloud Function.
  • The
Read the rest “Start and Stop VMs in GCP Using HTTP Triggered Cloud Functions with Python”