-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
448 lines (376 loc) · 12.4 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
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
variable "cloudamqp_customer_api_key" {
description = "API key needed to communicate to CloudAMQP's API"
type = string
sensitive = true
}
variable "instance_name" {
description = "Name of the CloudAMQP instance"
type = string
}
variable "instance_plan" {
description = "The subscription plan. See available plans https://registry.terraform.io/providers/cloudamqp/cloudamqp/latest/docs/guides/info_plan"
type = string
validation {
condition = var.instance_plan == "lemur" || var.instance_plan == "tiger" || var.instance_plan == "bunny" || var.instance_plan == "rabbit" || var.instance_plan == "panda" || var.instance_plan == "ape" || var.instance_plan == "hippo" || var.instance_plan == "lion" || var.instance_plan == "squirrel-1" || var.instance_plan == "bunny-1" || var.instance_plan == "bunny-3" || var.instance_plan == "rabbit-1" || var.instance_plan == "rabbit-3" || var.instance_plan == "rabbit-5" || var.instance_plan == "panda-1" || var.instance_plan == "panda-3" || var.instance_plan == "panda-5" || var.instance_plan == "ape-1" || var.instance_plan == "ape-3" || var.instance_plan == "ape-5" || var.instance_plan == "hippo-1" || var.instance_plan == "hippo-3" || var.instance_plan == "hippo-5" || var.instance_plan == "lion-1" || var.instance_plan == "lion-3" || var.instance_plan == "lion-5" || var.instance_plan == "rhino-1"
error_message = "The instance plan must be one of the following: lemur, tiger, bunny, rabbit, panda, ape, hippo or lion. Or on of the new plans: squirrel-1, bunny-1, bunny-3, rabbit-1, rabbit-3, rabbit-5, panda-1, panda-3, panda-5, ape-1, ape-3, ape-5, hippo-1, hippo-3, hippo-5, lion-1, lion-3, lion-5, rhino-1."
}
}
variable "instance_region" {
description = "The region to host the instance in. See Instance regions https://registry.terraform.io/providers/cloudamqp/cloudamqp/latest/docs/guides/info_region"
type = string
}
variable "instance_tags" {
description = "One or more tags for the CloudAMQP instance, makes it possible to categories multiple instances in console view"
type = list(string)
default = []
}
variable "instance_rmq_version" {
description = "The Rabbit MQ version. Note: There is not yet any support in the provider to change the RMQ version. Once it's set in the initial creation, it will remain"
type = string
default = null
}
variable "instance_vpc_id" {
description = "The VPC ID. Use this to create your instance in an existing VPC"
type = string
default = null
}
variable "instance_vpc_subnet" {
description = "Creates a dedicated VPC subnet, shouldn't overlap with other VPC subnet, default subnet used 10.56.72.0/24. NOTE: extra fee will be charged when using VPC"
type = string
default = null
}
variable "instance_no_default_alarms" {
description = "Set to true to discard creating default alarms when the instance is created"
type = bool
default = true
}
variable "notification_recipients" {
description = "Recipients to receive alarm notifications"
type = list(object({
type = string
value = string
name = string
}))
default = []
}
variable "alarm_cpu_enable" {
description = "Enable or disable the alarm to trigger"
type = bool
default = true
}
variable "alarm_cpu_recipients" {
description = "Identifier for recipient to be notified"
type = list(number)
default = null
}
variable "alarm_cpu_value_threshold" {
description = "The value to trigger the alarm for"
type = number
default = 90
}
variable "alarm_cpu_time_threshold" {
description = "The time interval (in seconds) the value_threshold should be active before triggering an alarm"
type = number
default = 600
}
variable "alarm_memory_enable" {
description = "Enable or disable the alarm to trigger"
type = bool
default = true
}
variable "alarm_memory_recipients" {
description = "Identifier for recipient to be notified"
type = list(number)
default = null
}
variable "alarm_memory_value_threshold" {
description = "The value to trigger the alarm for"
type = number
default = 80
}
variable "alarm_memory_time_threshold" {
description = "The time interval (in seconds) the value_threshold should be active before triggering an alarm"
type = number
default = 600
}
variable "alarm_disk_space_enable" {
description = "Enable or disable the alarm to trigger"
type = bool
default = true
}
variable "alarm_disk_space_recipients" {
description = "Identifier for recipient to be notified"
type = list(number)
default = null
}
variable "alarm_disk_space_value_threshold" {
description = "The value to trigger the alarm for"
type = number
default = 5
}
variable "alarm_disk_space_time_threshold" {
description = "The time interval (in seconds) the value_threshold should be active before triggering an alarm"
type = number
default = 600
}
variable "alarm_queue_enable" {
description = "Enable or disable the alarm to trigger"
type = bool
default = false
}
variable "alarm_queue_recipients" {
description = "Identifier for recipient to be notified"
type = list(number)
default = null
}
variable "alarm_queue_value_threshold" {
description = "The value to trigger the alarm for"
type = number
default = null
}
variable "alarm_queue_time_threshold" {
description = "The time interval (in seconds) the value_threshold should be active before triggering an alarm"
type = number
default = null
}
variable "alarm_queue_vhost_regex" {
description = "Regex for which vhost to check"
type = string
default = null
}
variable "alarm_queue_regex" {
description = "Regex for which queue to check"
type = string
default = null
}
variable "alarm_queue_message_type" {
description = "Message type (total, unacked, ready) used by queue alarm type."
type = string
default = null
}
variable "alarm_connection_enable" {
description = "Enable or disable the alarm to trigger"
type = bool
default = false
}
variable "alarm_connection_recipients" {
description = "Identifier for recipient to be notified"
type = list(number)
default = null
}
variable "alarm_connection_value_threshold" {
description = "An alarm will be sent when the number of connections are more than the value threshold for more than number of seconds in the time threshold"
type = number
default = null
}
variable "alarm_connection_time_threshold" {
description = "The time interval (in seconds) the value_threshold should be active before triggering an alarm"
type = number
default = null
}
variable "alarm_consumer_enable" {
description = "Enable or disable the alarm to trigger"
type = bool
default = false
}
variable "alarm_consumer_recipients" {
description = "Identifier for recipient to be notified"
type = list(number)
default = null
}
variable "alarm_consumer_value_threshold" {
description = "The value to trigger the alarm for"
type = number
default = null
}
variable "alarm_consumer_time_threshold" {
description = "The time interval (in seconds) the value_threshold should be active before triggering an alarm"
type = number
default = null
}
variable "alarm_consumer_vhost_regex" {
description = "Regex for which vhost to check"
type = string
default = null
}
variable "alarm_consumer_queue_regex" {
description = "Regex for which queue to check"
type = string
default = null
}
variable "alarm_server_unreachable_enable" {
description = "Enable or disable the alarm to trigger"
type = bool
default = true
}
variable "alarm_server_unreachable_recipients" {
description = "Identifier for recipient to be notified"
type = list(number)
default = null
}
variable "alarm_server_unreachable_time_threshold" {
description = "The time interval (in seconds) the value_threshold should be active before triggering an alarm"
type = number
default = 150
}
variable "alarm_notice_enable" {
description = "Enable or disable the alarm to trigger"
type = bool
default = true
}
variable "alarm_notice_recipients" {
description = "Identifier for recipient to be notified"
type = list(number)
default = null
}
variable "custom_domain" {
description = "Custom domain for the CloudAMQP instance"
type = string
default = null
}
variable "integration_papertrail_url" {
description = "Endpoint to log integration"
type = string
default = null
}
variable "integration_splunk_host_port" {
description = "Destination to send the logs"
type = number
default = null
}
variable "integration_splunk_token" {
description = "Token used for authentication"
type = string
default = null
}
variable "integration_logentries_token" {
description = "Token used for authentication"
type = string
default = null
}
variable "integration_loggly_token" {
description = "Token used for authentication"
type = string
default = null
}
variable "integration_aws_region" {
description = "Region hosting the integration service"
type = string
default = null
}
variable "integration_aws_access_key_id" {
description = "AWS access key identifier"
type = string
default = null
}
variable "integration_aws_secret_access_key" {
description = "AWS secret access key"
type = string
default = null
}
variable "integration_datadog_region" {
description = "Region hosting the integration service"
type = string
default = null
}
variable "integration_datadog_api_key" {
description = "The integration API key"
type = string
default = null
}
variable "integration_datadog_tags" {
description = "Tag the integration, e.g. env=prod, region=europe"
type = string
default = null
}
variable "integration_stackdriver_project_id" {
description = "The project identifier"
type = string
default = null
}
variable "integration_stackdriver_private_key" {
description = "The private access key"
type = string
default = null
}
variable "integration_stackdriver_client_email" {
description = "The client email registered for the integration service"
type = string
default = null
}
variable "integration_librato_api_key" {
description = "The integration API key"
type = string
default = null
}
variable "integration_librato_email" {
description = "The client email registered for the integration service"
type = string
default = null
}
variable "integration_newrelic_api_key" {
description = "The integration API key"
type = string
default = null
}
variable "integration_newrelic_region" {
description = "Region hosting the integration service"
type = string
default = null
}
variable "plugin_activaction" {
description = "The set of names of the Rabbit MQ plugins"
type = list(object({
name = string
enabled = bool
}))
default = []
}
variable "plugin_community_activaction" {
description = "The set of names of community the Rabbit MQ plugins"
type = list(object({
name = string
enabled = bool
}))
default = []
}
variable "webhook_vhost" {
description = "The vhost the queue resides in"
type = string
default = null
}
variable "webhook_queue" {
description = "A (durable) queue on your RabbitMQ instance"
type = string
default = null
}
variable "webhook_uri" {
description = "A POST request will be made for each message in the queue to this endpoint"
type = string
default = null
}
variable "webhook_retry_interval" {
description = "How often we retry if your endpoint fails (in seconds)"
type = number
default = null
}
variable "webhook_concurrency" {
description = "Max simultaneous requests to the endpoint"
type = number
default = null
}
variable "firewall_rules" {
description = "An array of rules, minimum of 1 needs to be configured"
type = map(object({
description = string
ip = string
ports = list(number)
services = list(string)
}))
default = {}
}
variable "vpc_peering_aws_vpc_peering_id" {
description = "Peering identifier created by AWS peering request"
type = string
default = null
}