generated from clouddrove/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
341 lines (287 loc) · 8.64 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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
variable "apply_immediately" {
type = bool
description = "Specifies whether any cluster modifications are applied immediately, or during the next maintenance window"
default = false
}
variable "auto_minor_version_upgrade" {
type = bool
description = "Enables automatic upgrades to new minor versions for brokers, as Apache releases the versions"
default = false
}
variable "deployment_mode" {
type = string
description = "The deployment mode of the broker. Supported: SINGLE_INSTANCE and ACTIVE_STANDBY_MULTI_AZ"
default = "ACTIVE_STANDBY_MULTI_AZ"
}
variable "security_group_id" {
description = "Security group ID to associate with the MQ broker"
type = list(any)
default = [""] # Default to an empty string, not an empty list
}
variable "additional_security_group_ids" {
description = "List of additional security group IDs to associate with the broker"
type = list(string)
default = [] # You can provide a default or leave it empty
}
variable "engine_type" {
type = string
description = "Type of broker engine, `ActiveMQ` or `RabbitMQ`"
default = "ActiveMQ"
}
variable "engine_version" {
type = string
description = "The version of the broker engine. See https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html for more details"
default = "5.17.6"
}
variable "host_instance_type" {
type = string
description = "The broker's instance type. e.g. mq.t2.micro or mq.m4.large"
default = "mq.t3.micro"
}
variable "publicly_accessible" {
type = bool
description = "Whether to enable connections from applications outside of the VPC that hosts the broker's subnets"
default = false
}
variable "general_log_enabled" {
type = bool
description = "Enables general logging via CloudWatch"
default = true
}
variable "audit_log_enabled" {
type = bool
description = "Enables audit logging. User management action made using JMX or the ActiveMQ Web Console is logged"
default = true
}
variable "maintenance_day_of_week" {
type = string
description = "The maintenance day of the week. e.g. MONDAY, TUESDAY, or WEDNESDAY"
default = "SUNDAY"
}
variable "maintenance_time_of_day" {
type = string
description = "The maintenance time, in 24-hour format. e.g. 02:00"
default = "03:00"
}
variable "maintenance_time_zone" {
type = string
description = "The maintenance time zone, in either the Country/City format, or the UTC offset format. e.g. CET"
default = "UTC"
}
variable "mq_admin_user" {
description = "Admin username for the MQ broker."
type = string
default = "admin"
}
variable "mq_admin_password" {
description = "Admin password for the MQ broker."
type = string
sensitive = true
default = ""
}
variable "tags" {
description = "Tags to be applied to resources"
type = map(string)
default = {}
}
# variable "mq_admin_password" {
# type = list(string)
# description = "Admin password"
# default = []
# sensitive = true
# }
variable "mq_application_user" {
type = list(string)
description = "Application username"
default = []
}
variable "mq_application_password" {
type = list(string)
description = "Application password"
default = []
sensitive = true
}
variable "vpc_id" {
type = string
description = "The ID of the VPC to create the broker in"
}
variable "subnet_ids" {
type = list(string)
description = "List of VPC subnet IDs"
}
variable "ssm_parameter_name_format" {
type = string
description = "SSM parameter name format"
default = "/%s/%s"
}
variable "ssm_path" {
type = string
description = "The first parameter to substitute in `ssm_parameter_name_format`"
default = "mq"
}
variable "mq_admin_user_ssm_parameter_name" {
type = string
description = "SSM parameter name for Admin username"
default = "mq_admin_username"
}
variable "mq_admin_password_ssm_parameter_name" {
type = string
description = "SSM parameter name for Admin password"
default = "mq_admin_password"
}
variable "mq_application_user_ssm_parameter_name" {
type = string
description = "SSM parameter name for Application username"
default = "mq_application_username"
}
variable "mq_application_password_ssm_parameter_name" {
type = string
description = "SSM parameter name for Application password"
default = "mq_application_password"
}
variable "kms_ssm_key_arn" {
type = string
description = "ARN of the AWS KMS key used for SSM encryption"
default = "alias/aws/ssm"
}
variable "encryption_enabled" {
type = bool
description = "Flag to enable/disable Amazon MQ encryption at rest"
default = true
}
variable "kms_mq_key_arn" {
type = string
description = "ARN of the AWS KMS key used for Amazon MQ encryption"
default = null
}
variable "use_aws_owned_key" {
type = bool
description = "Boolean to enable an AWS owned Key Management Service (KMS) Customer Master Key (CMK) for Amazon MQ encryption that is not in your account"
default = true
}
variable "allowed_ingress_ports" {
type = list(number)
description = <<-EOT
List of TCP ports to allow access to in the created security group.
Default is to allow access to all ports. Set `create_security_group` to `false` to disable.
Note: List of ports must be known at "plan" time.
EOT
default = []
}
variable "enabled" {
description = "Whether the broker is enabled"
type = bool
default = true
}
variable "broker_name" {
description = "Name of the broker"
type = string
}
# variable "deployment_mode" {
# description = "Deployment mode for the broker"
# type = string
# default = "ACTIVE"
# }
# variable "engine_type" {
# description = "The engine type (e.g., ActiveMQ, RabbitMQ)"
# type = string
# }
# variable "engine_version" {
# description = "Engine version"
# type = string
# }
# variable "host_instance_type" {
# description = "Host instance type for the broker"
# type = string
# }
# variable "auto_minor_version_upgrade" {
# description = "Whether to enable auto minor version upgrades"
# type = bool
# }
# variable "apply_immediately" {
# description = "Whether to apply changes immediately"
# type = bool
# }
# variable "publicly_accessible" {
# description = "Whether the broker is publicly accessible"
# type = bool
# }
# variable "subnet_ids" {
# description = "The subnet IDs for the broker"
# type = list(string)
# }
# variable "tags" {
# description = "Tags for the broker"
# type = map(string)
# default = {}
# }
variable "security_groups" {
description = "Security group IDs for the broker"
type = list(string)
default = []
}
# variable "encryption_enabled" {
# description = "Whether encryption is enabled"
# type = bool
# default = false
# }
# variable "kms_mq_key_arn" {
# description = "KMS Key ARN for encryption"
# type = string
# default = ""
# }
# variable "use_aws_owned_key" {
# description = "Whether to use AWS owned KMS key"
# type = bool
# default = true
# }
# variable "general_log_enabled" {
# description = "Whether general logging is enabled"
# type = bool
# default = false
# }
# variable "audit_log_enabled" {
# description = "Whether audit logging is enabled"
# type = bool
# default = false
# }
# variable "maintenance_day_of_week" {
# description = "Day of the week for maintenance"
# type = string
# default = "Monday"
# }
# variable "maintenance_time_of_day" {
# description = "Time of day for maintenance"
# type = string
# default = "00:00"
# }
# variable "maintenance_time_zone" {
# description = "Time zone for the maintenance window"
# type = string
# default = "UTC"
# }
variable "mq_admin_user_enabled" {
description = "Whether the admin user is enabled"
type = bool
default = false
}
# variable "mq_admin_user" {
# description = "Admin user for the broker"
# type = string
# default = ""
# }
# variable "mq_admin_password" {
# description = "Admin password for the broker"
# type = string
# default = ""
# }
# variable "mq_application_user" {
# description = "Application user for the broker"
# type = string
# default = ""
# }
# variable "mq_application_password" {
# description = "Application password for the broker"
# type = string
# default = ""
# }