This repository has been archived by the owner on Nov 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathvariables.tf
51 lines (45 loc) · 1.49 KB
/
variables.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
variable "name" {
description = "Short name of this policy assignment."
}
variable "description" {
description = "Description of what this policy does. Added to both definition and assignment."
}
variable "location" {
description = "The Azure Region in which to create resource."
}
variable "create_identity" {
description = "Set to true to create a system assigned managed identity. Required for policies that use deploy effect."
type = bool
default = false
}
variable "custom_policy" {
description = "A custom policy to create, will overwrite policy_definition_id. Both cannot be configured at same time."
type = object({
display_name = string
mode = string
management_group_id = string
metadata = string
policy_rule = string
parameters = string
})
default = null
}
variable "policy_definition_id" {
description = "The ID of the Policy Definition to be applied at the scope. If `custom_policy` variable is defined it will ignore this."
default = null
}
variable "assignments" {
description = "A list of policies to assign to resource id"
type = list(object({
display_name = string
id = string
not_scopes = list(string)
parameters = string
exemption = object({
name = string
display_name = string
exemption_category = string
policy_definition_reference_ids = list(string)
})
}))
}