-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
73 lines (58 loc) · 1.97 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
variable "name" {
description = "The name of the queue"
type = string
validation {
condition = !can(regex("\\.fifo$", var.name))
error_message = "Use the is_fifo variable to create a FIFO queue. The names of the queue and the DLQ will be correctly postfixed with .fifo."
}
}
variable "is_fifo" {
description = "Should the queue be created as a FIFO queue?"
type = bool
default = false
}
variable "visibility_timeout" {
description = "How long should the message be hidden from other consumers?"
type = number
default = null
}
variable "max_tries_before_sending_to_dlq" {
description = "How many times should the message be retried before sending it to the DLQ?"
type = number
default = 3
}
variable "subscribe_sns_arns" {
description = "A list of SNS ARNs to subscribe to the queue"
type = list(string)
default = []
}
variable "filter_policy" {
description = "JSON String with the filter policy that will be used in the subscription to filter messages."
type = string
default = null
}
variable "filter_policy_scope" {
description = "Whether the filter policy applies to MessageAttributes or MessageBody. If not set, the default from AWS will be used."
type = string
default = null
}
variable "raw_message_delivery" {
description = "Should raw message delivery be enabled, defaults to false."
type = bool
default = false
}
variable "long_poll_time_seconds" {
description = "The amount of time a call to RecieveMessage will wait for a message before returning. Meaning that the ReceiveMessage call will perform long polling."
type = number
default = 0
}
variable "message_retention_seconds" {
description = "The number of seconds Amazon SQS retains a message."
type = number
default = null
}
variable "message_retention_seconds_dlq" {
description = "The number of seconds Amazon SQS retains a message in the DLQ."
type = number
default = null
}