-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf
35 lines (34 loc) · 1.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
variable "alarm_topic_arn" {
type = string
description = "Arn of the alarm sns topic"
default = null
}
variable "queues" {
type = map(object({
alarm = optional(object({
enabled = optional(bool, false)
datapoints_to_alarm = optional(number, 3)
description = optional(string, null)
evaluation_periods = optional(number, 3)
backlog_minutes = optional(number, 3)
period = optional(number, 60)
threshold = optional(number, 0)
}))
queue = object({
dead_letter_queue_create = optional(bool, true)
delay_seconds = optional(number, null)
fifo_queue = optional(bool, false)
max_receive_count = optional(number, null)
message_retention_seconds = optional(number, null)
principals_with_send_permission = optional(list(string), null)
visibility_timeout_seconds = optional(number, null)
})
subscriptions = optional(map(object({
enabled = optional(bool, true)
filter_policy = optional(string, null)
topic_arn = optional(string, null)
})))
}))
description = "Queues to be created"
default = {}
}