[GCP] Set maximum function instances

Hey guys, I was wondering if it’s possible to set maximum function instances of a google cloud function using serverless.yml.
I didn’t find anything on the docs and I’ve already tried adding attribute “maxInstances” to the .yml file but nothing changed. :confused:

Since I still haven’t found anything related to this question, I’ll try asking again!

gcloud has this command gcloud functions deploy FUNCTION_NAME --clear-max-instances but sls does not seem to have something similar.


I got it work as follow:

    runtime: nodejs8
    handler: http
    maxInstances: 1 <-- set it here
      - http: path