generated from telekom-mms/terraform-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.tf
22 lines (20 loc) · 1.18 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
* # authorization
*
* This module manages the azurerm authorization resources.
* For more information see https://registry.terraform.io/providers/azurerm/latest/docs > authorization
*
*/
resource "azurerm_role_assignment" "role_assignment" {
for_each = var.role_assignment
name = local.role_assignment[each.key].name
scope = local.role_assignment[each.key].scope
role_definition_id = local.role_assignment[each.key].role_definition_id
role_definition_name = local.role_assignment[each.key].role_definition_name
principal_id = local.role_assignment[each.key].principal_id
condition = local.role_assignment[each.key].condition
condition_version = local.role_assignment[each.key].condition_version
delegated_managed_identity_resource_id = local.role_assignment[each.key].delegated_managed_identity_resource_id
description = local.role_assignment[each.key].description
skip_service_principal_aad_check = local.role_assignment[each.key].skip_service_principal_aad_check
}