hackerman
hackerman

Reputation: 1291

Google cloud platform not recognizing instance in app.yaml

I'm trying to create a new environment on google cloud platform. It's not recognizing my instance class... and giving the error Instance class (n1-standard-1) is not recognized

entrypoint: gunicorn -b :$PORT presto.wsgi
env: flex
runtime: python
instance_class: n1-standard-1

runtime_config:
  python_version: 3

n1-standard-1 is given from google's documentation so I'm not sure what's wrong here. Does it go by a different name? Thanks!

Upvotes: 1

Views: 140

Answers (1)

Jofre
Jofre

Reputation: 3898

For the python flex environment, the resource config is defined in a different way.

To get the same machine as a n1-standard-1, you must add the following resource definition in your app.yaml:

resources:
  cpu: 1
  memory_gb: 3.75

Upvotes: 2

Related Questions