From 435bfde150a61d9a216c4f3dbcdd05838f4d910f Mon Sep 17 00:00:00 2001 From: Martin Hutchinson Date: Wed, 8 Nov 2023 16:55:18 +0000 Subject: [PATCH] Make the cloud run service public (#54) --- deployment/main.tf | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/deployment/main.tf b/deployment/main.tf index d1d2816..7bfe92d 100644 --- a/deployment/main.tf +++ b/deployment/main.tf @@ -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" + ] +} +