-
Notifications
You must be signed in to change notification settings - Fork 71
/
main.tf
51 lines (48 loc) · 2.49 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
resource "azurerm_management_group_policy_exemption" "management_group_exemption" {
count = local.exemption_scope.mg
name = var.name
display_name = var.display_name
description = var.description
management_group_id = var.scope
policy_assignment_id = var.policy_assignment_id
exemption_category = var.exemption_category
expires_on = local.expires_on
policy_definition_reference_ids = local.policy_definition_reference_ids
metadata = local.metadata
}
resource "azurerm_subscription_policy_exemption" "subscription_exemption" {
count = local.exemption_scope.sub
name = var.name
display_name = var.display_name
description = var.description
subscription_id = var.scope
policy_assignment_id = var.policy_assignment_id
exemption_category = var.exemption_category
expires_on = local.expires_on
policy_definition_reference_ids = local.policy_definition_reference_ids
metadata = local.metadata
}
resource "azurerm_resource_group_policy_exemption" "resource_group_exemption" {
count = local.exemption_scope.rg
name = var.name
display_name = var.display_name
description = var.description
resource_group_id = var.scope
policy_assignment_id = var.policy_assignment_id
exemption_category = var.exemption_category
expires_on = local.expires_on
policy_definition_reference_ids = local.policy_definition_reference_ids
metadata = local.metadata
}
resource "azurerm_resource_policy_exemption" "resource_exemption" {
count = local.exemption_scope.resource
name = var.name
display_name = var.display_name
description = var.description
resource_id = var.scope
policy_assignment_id = var.policy_assignment_id
exemption_category = var.exemption_category
expires_on = local.expires_on
policy_definition_reference_ids = local.policy_definition_reference_ids
metadata = local.metadata
}