We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63a9e72 commit 3419a29Copy full SHA for 3419a29
2 files changed
infrastructure/modules/sqs/sqs_queue_redrive_policy.tf
@@ -4,6 +4,6 @@ resource "aws_sqs_queue_redrive_policy" "redrive_policy" {
4
queue_url = aws_sqs_queue.sqs_queue.url
5
redrive_policy = jsonencode({
6
deadLetterTargetArn = aws_sqs_queue.deadletter_queue[0].arn
7
- maxReceiveCount = 3
+ maxReceiveCount = var.max_receive_count
8
})
9
}
infrastructure/modules/sqs/variables.tf
@@ -116,3 +116,9 @@ variable "create_dlq" {
116
type = bool
117
default = false
118
119
+
120
+variable "max_receive_count" {
121
+ description = "The maximum number of times a message can be received before being sent to the DLQ"
122
+ type = number
123
+ default = 3
124
+}
0 commit comments