From 76917135be0d4c2f121de24f420a09a360a1a940 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Czeraszkiewicz?= Date: Tue, 28 Dec 2021 17:46:22 +0000 Subject: [PATCH] fix: unsupported attribute when using policy_bindings --- iam.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iam.tf b/iam.tf index 7ea1724..99ae4c9 100644 --- a/iam.tf +++ b/iam.tf @@ -17,8 +17,8 @@ module "iam" { module_depends_on = var.module_depends_on secret_id = google_secret_manager_secret.secret[0].secret_id - role = each.value.role - members = each.value.members + role = try(each.value.role, null) + members = try(each.value.members, null) authoritative = try(each.value.authoritative, true) policy_bindings = try(each.value.policy_bindings, null) }