Fix in IAM bindings of cloud function v2 module

This commit is contained in:
Miren Esnaola 2023-07-31 12:39:08 +02:00
parent b702e5794c
commit 51bc31ae21
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ resource "google_cloudfunctions2_function" "function" {
}
resource "google_cloudfunctions2_function_iam_binding" "default" {
for_each = var.iam
for_each = local.iam
project = var.project_id
location = google_cloudfunctions2_function.function.location
cloud_function = google_cloudfunctions2_function.function.name