-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathoutputs.tf
42 lines (36 loc) · 1.67 KB
/
outputs.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
32
33
34
35
36
37
38
39
40
41
42
output "management_group_resource_ids" {
description = "A map of management group names to their resource ids."
value = { for k, v in merge(
azapi_resource.management_groups_level_0,
azapi_resource.management_groups_level_1,
azapi_resource.management_groups_level_2,
azapi_resource.management_groups_level_3,
azapi_resource.management_groups_level_4,
azapi_resource.management_groups_level_5,
azapi_resource.management_groups_level_6,
) : k => v.id }
}
output "policy_assignment_identity_ids" {
description = "A map of policy assignment names to their identity ids."
value = { for k, v in local.policy_assignment_identities : k => v.principal_id if v != null }
}
output "policy_assignment_resource_ids" {
description = "A map of policy assignment names to their resource ids."
value = { for k, v in azapi_resource.policy_assignments : k => v.id }
}
output "policy_definition_resource_ids" {
description = "A map of policy definition names to their resource ids."
value = { for k, v in azapi_resource.policy_definitions : k => v.id }
}
output "policy_role_assignment_resource_ids" {
description = "A map of policy role assignments to their resource ids."
value = { for k, v in azapi_resource.policy_role_assignments : k => v.id }
}
output "policy_set_definition_resource_ids" {
description = "A map of policy set definition names to their resource ids."
value = { for k, v in azapi_resource.policy_set_definitions : k => v.id }
}
output "role_definition_resource_ids" {
description = "A map of role definition names to their resource ids."
value = { for k, v in azapi_resource.role_definitions : k => v.id }
}