-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathvariables.tf
95 lines (91 loc) · 2.24 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
84
85
86
87
88
89
90
91
92
93
94
95
variable "groups" {
description = "Schema list of IAM groups"
type = list(object({
name = string
path = string
user_names = list(string)
inline_policies = list(object({
name = string
policy = string
}))
managed_policies = list(object({
name = string
arn = optional(string)
}))
}))
default = []
}
variable "policies" {
description = "Schema list of policy objects"
type = list(object({
description = string
name = string
path = string
policy = string
tags = map(string)
}))
default = []
}
variable "policy_documents" {
description = "Schema list of IAM policy documents"
type = any
# Using `any` because template_vars may have differing element types, which generates
# an error when terraform converts the values to a list. However, the real type is:
# type = list(object({
# name = string
# template = string
# template_paths = list(string)
# template_vars = any
# }))
default = []
}
variable "roles" {
description = "Schema list of IAM roles"
type = list(object({
name = string
assume_role_policy = string
description = string
force_detach_policies = bool
instance_profile = object({
name = string
path = string
})
max_session_duration = number
path = string
permissions_boundary = string
tags = map(string)
inline_policies = list(object({
name = string
policy = string
}))
managed_policies = list(object({
name = string
arn = optional(string)
}))
}))
default = []
}
variable "users" {
description = "Schema list of IAM users"
type = list(object({
name = string
force_destroy = bool
path = string
permissions_boundary = string
tags = map(string)
inline_policies = list(object({
name = string
policy = string
}))
managed_policies = list(object({
name = string
arn = optional(string)
}))
access_keys = list(object({
name = string
status = string
pgp_key = string
}))
}))
default = []
}