Is it possible to configure the cloud function trigger-bucket
parameter to be a folder in a GCS bucket?
For example, imagine we have the following:
gs://a_bucket/a_folder
Instead of setting --trigger-bucket gs://a_bucket
when deploying, I need to set it at the folder level i.e. --trigger-bucket gs://a_bucket/a_folder/
.
However, I get the error:
ERROR: (gcloud.beta.functions.deploy) argument --trigger-bucket: Invalid value 'gs://a_bucket/a_folder/': Bucket must only contain lower case Latin letters, digits and characters . _ -. It must start and end with a letter or digit and be from 3 to 232 characters long. You may optionally prepend the bucket name with gs:// and append / at the end.
https://cloud.google.com/sdk/gcloud/reference/beta/functions/deploy