Skip to content

Commit

Permalink
fix dead letter bug (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
morsecodist authored Jan 5, 2022
1 parent 1ee4e64 commit 5f5f9a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions terraform/modules/swipe-sfn/notifications.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ resource "aws_sqs_queue" "sfn_notifications_queue" {
visibility_timeout_seconds = lookup(each.value, "visibility_timeout_seconds", "120")

// Sent to dead-letter queue after maxReceiveCount tries
redrive_policy = lookup(each.value, "dead_letter", "true") == "true" ? null : jsonencode({
redrive_policy = lookup(each.value, "dead_letter", "true") == "true" ? jsonencode({
deadLetterTargetArn = aws_sqs_queue.sfn_notifications_queue_dead_letter[each.key].arn
maxReceiveCount = 3
})
}) : null

tags = var.tags
}
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.9.0-beta
v0.9.1-beta

0 comments on commit 5f5f9a8

Please sign in to comment.