forked from aztfmod/terraform-azurerm-caf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subscriptions.tf
executable file
·31 lines (25 loc) · 955 Bytes
/
subscriptions.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
26
27
28
29
30
31
module "subscriptions" {
source = "./modules/subscriptions"
depends_on = [azurerm_role_assignment.for]
for_each = var.subscriptions
global_settings = local.global_settings
subscription_key = each.key
settings = each.value
client_config = local.client_config
diagnostics = local.combined_diagnostics
}
module "subscription_billing_role_assignments" {
source = "./modules/subscription_billing_role_assignment"
for_each = var.subscription_billing_role_assignments
billing_role_definition_name = each.value.billing_role_definition_name
client_config = local.client_config
keyvaults = local.combined_objects_keyvaults
settings = each.value
principals = {
azuread_users = local.combined_objects_azuread_users
managed_identities = local.combined_objects_managed_identities
}
}
output "subscriptions" {
value = module.subscriptions
}