Google Cloud Features Can't Deploy
I am following the tutorial for google cloud features. Trying to expand the hello world from the command line returns
ERROR: (gcloud.beta.functions.deploy) for the [locationsId] field for the [cloudfunctions.projects.locations] collection is required but not provided
deployment team
gcloud beta functions deploy helloWorld --stage-bucket shopping-functions --trigger-topic hello_world
+3
source to share
4 answers
As @jdabello said , I applied a parameter --region
to my command and it solves the problem like this:
gcloud beta functions deploy helloWorld --stage-bucket your-bucket --trigger-topic hello_world --region=us-central1
Or you can set your functions / scope to default with gcloud config set
and you can skip setting the function scope every time.
gcloud config set functions/region us-central1
+5
source to share