generated from geekcell/terraform-aws-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
83 lines (70 loc) · 1.81 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
## NAMING
variable "name" {
description = "Name of the policy."
type = string
}
variable "description" {
description = "Description of the Security Group."
default = null
type = string
}
variable "tags" {
description = "Tags to add to the Security Group."
default = {}
type = map(any)
}
## POLICY FROM TEMPLATES
variable "create_policy" {
description = "Whether to create the actual policy resource or to only render it."
default = true
type = bool
}
variable "templates" {
description = "A list of templates. Multiple templates will be combined into a single policy."
default = []
type = list(object({
name = string
vars = optional(map(any))
}))
}
## POLICY
variable "use_name_prefix" {
description = "Use the `name` attribute as prefix for the role name."
default = true
type = bool
}
variable "path" {
description = "Path in which to create the policy."
default = "/"
type = string
}
variable "policy_id" {
description = "ID for the policy document."
default = null
type = string
}
variable "statements" {
description = "A map of principals which can assume the role."
default = []
type = list(object({
sid = optional(string)
effect = optional(string, "Allow")
actions = optional(list(string))
not_actions = optional(list(string))
resources = optional(list(string))
not_resources = optional(list(string))
conditions = optional(list(object({
test = string
variable = string
values = list(string)
})))
principals = optional(list(object({
type = string
identifiers = list(string)
})))
not_principals = optional(list(object({
type = string
identifiers = list(string)
})))
}))
}