diff --git a/modules/cloud-function-v2/main.tf b/modules/cloud-function-v2/main.tf index 23699fc446..71979ee3b1 100644 --- a/modules/cloud-function-v2/main.tf +++ b/modules/cloud-function-v2/main.tf @@ -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