Use App Engine to start a Compute Engine VM
- You have to manually create the VM instance before.
- After VM is started, you can press the
STOP
button to stop the VM. - Install the packages with
pip install -r requirements.txt -t lib
. a.) Note if you're on macOs doing this with brew, you will need to follow this workaround listed here b.) Second note, you'll be installing the packages locally and directly uploading them to GCP. You don't have any "install" during the deploy. - Deploy the app with command
gcloud app deploy app.yaml cron.yaml --version THE_VERSION
orappcfg.py update app.yaml
. - Visit
/vm/start
to start the VM. Or visit the GCP console AppEngine Dashboard, which can show you errors and help you debug if needed.