generated from clowdhaus/terraform-aws-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
variables.tf
215 lines (177 loc) · 6.12 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
variable "create" {
description = "Controls if resources should be created (affects nearly all resources)"
type = bool
default = true
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}
################################################################################
# Compute Environment(s)
################################################################################
variable "compute_environments" {
description = "Map of compute environment definitions to create"
type = any
default = {}
}
################################################################################
# Compute Environment - Instance Role
################################################################################
variable "create_instance_iam_role" {
description = "Determines whether a an IAM role is created or to use an existing IAM role"
type = bool
default = true
}
variable "instance_iam_role_name" {
description = "Cluster instance IAM role name"
type = string
default = null
}
variable "instance_iam_role_use_name_prefix" {
description = "Determines whether the IAM role name (`instance_iam_role_name`) is used as a prefix"
type = string
default = true
}
variable "instance_iam_role_path" {
description = "Cluster instance IAM role path"
type = string
default = null
}
variable "instance_iam_role_description" {
description = "Cluster instance IAM role description"
type = string
default = null
}
variable "instance_iam_role_permissions_boundary" {
description = "ARN of the policy that is used to set the permissions boundary for the IAM role"
type = string
default = null
}
variable "instance_iam_role_additional_policies" {
description = "Additional policies to be added to the IAM role"
type = list(string)
default = []
}
variable "instance_iam_role_tags" {
description = "A map of additional tags to add to the IAM role created"
type = map(string)
default = {}
}
################################################################################
# Compute Environment - Service Role
################################################################################
variable "create_service_iam_role" {
description = "Determines whether a an IAM role is created or to use an existing IAM role"
type = bool
default = true
}
variable "service_iam_role_name" {
description = "Batch service IAM role name"
type = string
default = null
}
variable "service_iam_role_use_name_prefix" {
description = "Determines whether the IAM role name (`service_iam_role_name`) is used as a prefix"
type = bool
default = true
}
variable "service_iam_role_path" {
description = "Batch service IAM role path"
type = string
default = null
}
variable "service_iam_role_description" {
description = "Batch service IAM role description"
type = string
default = null
}
variable "service_iam_role_permissions_boundary" {
description = "ARN of the policy that is used to set the permissions boundary for the IAM role"
type = string
default = null
}
variable "service_iam_role_additional_policies" {
description = "Additional policies to be added to the IAM role"
type = list(string)
default = []
}
variable "service_iam_role_tags" {
description = "A map of additional tags to add to the IAM role created"
type = map(string)
default = {}
}
################################################################################
# Compute Environment - Spot Fleet Role
################################################################################
variable "create_spot_fleet_iam_role" {
description = "Determines whether a an IAM role is created or to use an existing IAM role"
type = bool
default = false
}
variable "spot_fleet_iam_role_name" {
description = "Spot fleet IAM role name"
type = string
default = null
}
variable "spot_fleet_iam_role_use_name_prefix" {
description = "Determines whether the IAM role name (`spot_fleet_iam_role_name`) is used as a prefix"
type = string
default = true
}
variable "spot_fleet_iam_role_path" {
description = "Spot fleet IAM role path"
type = string
default = null
}
variable "spot_fleet_iam_role_description" {
description = "Spot fleet IAM role description"
type = string
default = null
}
variable "spot_fleet_iam_role_permissions_boundary" {
description = "ARN of the policy that is used to set the permissions boundary for the IAM role"
type = string
default = null
}
variable "spot_fleet_iam_role_additional_policies" {
description = "Additional policies to be added to the IAM role"
type = list(string)
default = []
}
variable "spot_fleet_iam_role_tags" {
description = "A map of additional tags to add to the IAM role created"
type = map(string)
default = {}
}
################################################################################
# Job Queue
################################################################################
variable "create_job_queues" {
description = "Determines whether to create job queues"
type = bool
default = true
}
variable "job_queues" {
description = "Map of job queue and scheduling policy defintions to create"
type = any
default = {}
}
################################################################################
# Scheduling Policy
################################################################################
# Scheduling policy is nested under job queue defintion
################################################################################
# Job Definitions
################################################################################
variable "job_definitions" {
description = "Map of job definitions to create"
type = any
default = {}
}
variable "create_job_definitions" {
description = "Determines whether to create the job definitions defined"
type = bool
default = true
}