GoogleCloudPlatform / terraform-google-cloud-run

Deploys apps to Cloud Run, along with option to map custom domain
https://registry.terraform.io/modules/GoogleCloudPlatform/cloud-run/google
Apache License 2.0
140 stars 93 forks source link

How to set security - allow unauthenticated? #134

Closed virajkanwade closed 11 months ago

virajkanwade commented 1 year ago

------------8<--------------8<------------ Authentication *

Allow unauthenticated invocations Check this if you are creating a public API or website.

Require authentication Manage authorized users with Cloud IAM. ------------8<--------------8<------------

It always defaults to "Require authentication"

nickwei8 commented 1 year ago

Use this to set allow unauthenticated

resource "google_cloud_run_service_iam_binding" "test" {
  location = module.cloud_run_test.location
  service  = module.cloud_run_test.service_name
  role     = "roles/run.invoker"
  members = [
    "allUsers"
  ]
}
github-actions[bot] commented 1 year ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days