Hi,
I’m trying to deploy a V2 Google Cloud Function (i.e. the Cloud Run variant). This cloud function must be publicly accessible, however the examples I’ve found don’t see to work:
- Deploy Cloud Function 2nd gen with HTTP trigger using Terraform | Cloud Run functions Documentation | Google Cloud This setup (using google_cloud_run_service_iam_member) doesn’t work correctly. The error returned is " Resource ‘…’ of kind ‘SERVICE’ in region ‘…’ in project ‘…’ does not exist.)
- Terraform Registry This setup seems to use the wrong role (roles/viewer instead of roles/run.invoker). Running this example completes successfully, but the function is still private. Using the run.invoker role results in an error.
Any help is appreciated.