gcloud-instance-scheduler
This is an App Engine in Node.js, that will start and stop your Compute Engine instances automatically.
Usage
-
Download and unzip the latest release
-
Run
npm i
to install the dependencies. -
Configure the Scheduling in
cron.yaml
. You can find more information about scheduling an App Engine here.The configuration may look like this:
cron:- description: daily start joburl: /start/instance1-zone:instance1-name|instance2-zone:instance2-nameschedule: every mon,tue,wed,thu,fri 07:00- description: daily stop joburl: /stop/instance1-zone:instance1-name|instance2-zone:instance2-nameschedule: every mon,tue,wed,thu,fri 18:00 -
Deploy your App Engine. You can find more information about deploying your App Engine here