Skip to content

Commit

Permalink
Make the cloud run service public (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhutchinson authored Nov 8, 2023
1 parent 39701a9 commit 435bfde
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions deployment/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -187,3 +187,13 @@ resource "google_cloud_run_v2_service" "default" {
client = "terraform"
depends_on = [google_project_service.secretmanager_api, google_project_service.cloudrun_api, google_project_service.sqladmin_api]
}

resource "google_cloud_run_service_iam_binding" "default" {
location = google_cloud_run_v2_service.default.location
service = google_cloud_run_v2_service.default.name
role = "roles/run.invoker"
members = [
"allUsers"
]
}

0 comments on commit 435bfde

Please sign in to comment.