generated from geekcell/terraform-aws-module-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
81 lines (69 loc) · 1.92 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
## NAMING
variable "name" {
description = "Name or prefix of the Role."
type = string
}
variable "description" {
description = "Description of the Role."
default = null
type = string
}
variable "tags" {
description = "Tags to add to the Role."
default = {}
type = map(any)
}
## AWS IAM Policy
variable "use_name_prefix" {
description = "Use the `name` attribute as prefix for the role name."
default = true
type = bool
}
variable "assume_roles" {
description = "A map of principals which can assume the role. The default action is: `[\"sts:AssumeRole\"]`"
default = {}
type = map(object({
actions = optional(list(string))
identifiers = list(string)
conditions = optional(list(object({
test = string
variable = string
values = list(string)
})))
}))
}
variable "assume_role_json" {
description = "A rendered JSON string of the `assume_roles` variable."
default = null
type = string
}
variable "policy_arns" {
description = "A list of policy ARNs to attach to the role."
default = []
type = list(string)
}
variable "max_session_duration" {
description = "Maximum session duration (in seconds) that you want to set for the specified role."
default = 3600
type = number
}
variable "path" {
description = "Path to the role."
default = "/"
type = string
}
variable "force_detach_policies" {
description = "Whether to force detaching any policies the role has before destroying it."
default = false
type = bool
}
variable "permissions_boundary" {
description = "ARN of the policy that is used to set the permissions boundary for the role."
default = null
type = string
}
variable "enable_iam_instance_profile" {
description = "If enabled, will create an IAM instance profile for this role."
default = false
type = bool
}