I want to start/stop a set of Compute engine instances in Google Cloud Platform using Google Cloud Scheduler. How can I do it?
In order to start and stop a Compute Engine using the Cloud Scheduler you can follow Google this tutorial, or this other
I won’t be copy-pasting the required code here because the tutorial it's very complete but I will resume here the steps to follow.
If you need any help with the tutorial please just let me know!
I still wonder why gcp has still not have this feature in the first place. Anyways These simple steps did the job for me
gcloud compute instances stop instance-name
.To verify the change you can run the job manually and check
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With