0

Is there a parameter to add in serverless.yml to deploy GCP functions (Go) the same way it can be done by adding --allow-unauthenticated to gcloud deploy command?

Can't find any information about this in the serverless documentation.

Zat42
  • 1,652
  • 4
  • 19
  • 32

1 Answers1

1

I guess it's not possible. Serverless product uses the Cloud Functions API to deploy te Cloud Functions. To set the allow-unauthenticated, you need to use the IAM API to add the cloudfunctions.invoker role to allUsers.

gcloud CLI offers a convenient way to package the both API call in a single command line, but external tool need to implement the same extra effort to achieve that. That's why, I'm pretty sure that is not possible.

guillaume blaquiere
  • 33,758
  • 2
  • 11
  • 37