Skip to content

Commit

Permalink
Fix redive policy
Browse files Browse the repository at this point in the history
  • Loading branch information
snemetz committed May 30, 2019
1 parent 5e5c748 commit b6ba3f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ resource "aws_sqs_queue" "queue_with_dlq" {
message_retention_seconds = "${var.message_retention_seconds}"
visibility_timeout_seconds = "${var.visibility_timeout_seconds}"
tags = "${module.labels.tags[count.index]}"
redrive_policy = "{\"deadLetterTargetArn\":\"${element(aws_sqs_queue.queue_deadletter.*.arn, count.index)}\",\"maxReceiveCount\":\"${var.max_receive_count}\"}"
redrive_policy = "{\"deadLetterTargetArn\":\"${element(aws_sqs_queue.queue_deadletter.*.arn, count.index)}\",\"maxReceiveCount\":${var.max_receive_count}}"
}

0 comments on commit b6ba3f5

Please sign in to comment.