This is an App Engine in Node.js, that will start and stop your Compute Engine instances automatically.
-
Download and unzip the latest release
-
Run
npm ito 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 job url: /start/instance1-zone:instance1-name|instance2-zone:instance2-name schedule: every mon,tue,wed,thu,fri 07:00 - description: daily stop job url: /stop/instance1-zone:instance1-name|instance2-zone:instance2-name schedule: every mon,tue,wed,thu,fri 18:00
-
Deploy your App Engine. You can find more information about deploying your App Engine here