-
Notifications
You must be signed in to change notification settings - Fork 71
/
outputs.tf
46 lines (40 loc) · 1.55 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
43
44
45
46
output "id" {
description = "The Id of the Policy Set Definition"
value = local.initiative_id
}
output "name" {
description = "The name of the Policy Set Definition"
value = var.initiative_name
}
output "parameters" {
description = "The combined parameters of the Policy Set Definition"
value = local.parameters
}
output "metadata" {
description = "The metadata of the Policy Set Definition"
value = local.metadata
}
output "role_definition_ids" {
description = "Role definition IDs for remediation"
value = local.all_role_definition_ids
}
output "non_compliance_messages" {
description = "Generated Key/Value map of non-compliance messages"
value = local.non_compliance_messages
}
output "initiative" {
description = "The combined Policy Initiative resource node"
value = {
id = local.initiative_id
name = var.initiative_name
display_name = var.initiative_display_name
description = var.initiative_description
management_group_id = var.management_group_id
parameters = local.parameters
metadata = jsonencode(local.metadata)
policy_definition_reference = azurerm_policy_set_definition.set.policy_definition_reference
reference_ids = try(azurerm_policy_set_definition.set.policy_definition_reference.*.reference_id, [])
role_definition_ids = local.all_role_definition_ids
replace_trigger = local.replace_trigger
}
}