I am trying to change the region with serverless.yml like this:
service: my-service
provider:
name: google
runtime: nodejs
project: my-project
region: europe-west1 <------ CHANGING REGION HERE
credentials: ~/.gcloud/keyfile.json
plugins:
- serverless-google-cloudfunctions
# needs more granular excluding in production as only the serverless provider npm
# package should be excluded (and not the whole node_modules directory)
package:
exclude:
- node_modules/**
- .gitignore
- .git/**
functions:
first:
handler: http
events:
- http: path
But it does nothing it always falls into the default region us-central1 which is pretty far away. If somebody know how to change this then tell me, thanks.
@KeKs0r Thanks, I found those too but then after 2 hours of digging, I found that deploy command has region flag for specifying a region which seems to work. I was worried that there wasn’t any workaround and I was stuck with US region. Setting default in yml will be nice of course.