Last active
November 7, 2025 14:27
-
-
Save chrisguitarguy/13b51ed584984fb3d9e9586aaeb1766f to your computer and use it in GitHub Desktop.
Revisions
-
chrisguitarguy renamed this gist
Nov 7, 2025 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
chrisguitarguy created this gist
Nov 7, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ resource "aws_sqs_queue" "example" { name = "example" } resource "aws_sqs_queue" "example-dlq" { name = "example-dlq" message_retention_seconds = 1209600 # 14 days } resource "aws_sqs_queue_redrive_allow_policy" "example-dlq" { queue_url = aws_sqs_queue.example-dlq.url redrive_allow_policy = jsonencode({ redrivePermission = "byQueue", sourceQueueArns = [aws_sqs_queue.example.arn], }) } resource "aws_sqs_queue_redrive_policy" "example" { queue_url = aws_sqs_queue.example.url redrive_policy = jsonencode({ deadLetterTargetArn = aws_sqs_queue.example-dlq.arn maxReceiveCount = 3 }) }