-
Notifications
You must be signed in to change notification settings - Fork 0
/
azuread.tf
25 lines (22 loc) · 820 Bytes
/
azuread.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module "azuread_groups" {
source = "./modules/security/azuread/groups"
for_each = {
for key, value in try(local.settings.azuread.groups, {}) : key => value
if try(value.enabled, false) == true && try(value.reuse, false) == false
}
# global_settings = local.settings
azuread_group = each.value
tenant_id = var.tenant_id
client_config = data.azurerm_client_config.current
}
module "azuread_groups_reused" {
source = "./modules/security/azuread/groups_reused"
for_each = {
for key, value in try(local.settings.azuread.groups, {}) : key => value
if try(value.enabled, false) == true && try(value.reuse, false) == true
}
# global_settings = local.settings
azuread_group = each.value
tenant_id = var.tenant_id
client_config = data.azurerm_client_config.current
}