Add support for conditions to iam_members module variables (#1594)
* project * data-catalog-policy-tag * dataproc * folder * iam-service-account * kms * net-vpc * organization * source-repository * dataplex-datascan
This commit is contained in:
committed by
GitHub
parent
1644ab8279
commit
def2f476d1
@@ -69,6 +69,14 @@ resource "google_folder_iam_member" "members" {
|
||||
folder = local.folder.name
|
||||
role = each.value.role
|
||||
member = each.value.member
|
||||
dynamic "condition" {
|
||||
for_each = each.value.condition == null ? [] : [""]
|
||||
content {
|
||||
expression = each.value.condition.expression
|
||||
title = each.value.condition.title
|
||||
description = each.value.condition.description
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
resource "google_folder_iam_policy" "authoritative" {
|
||||
|
||||
Reference in New Issue
Block a user