Difference between revisions of "Aws sqs queue redrive policy"
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 24: | Line 24: | ||
}) | }) | ||
} | } | ||
+ | |||
+ | == Related == | ||
+ | * [[Using dead-letter queues in Amazon SQS]] | ||
+ | * [[Amazon SNS dead-letter queues (DLQ)]] | ||
+ | * [[aws_sns_topic_subscription]]: [[redrive_policy]] | ||
== See also == | == See also == | ||
* {{tf sqs}} | * {{tf sqs}} |
Latest revision as of 11:16, 13 March 2025
https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/sqs_queue_redrive_policy
Official example[edit]
resource "aws_sqs_queue" "q" { name = "examplequeue" } resource "aws_sqs_queue" "ddl" { name = "examplequeue-ddl" redrive_allow_policy = jsonencode({ redrivePermission = "byQueue", sourceQueueArns = [aws_sqs_queue.q.arn] }) } resource "aws_sqs_queue_redrive_policy" "q" { queue_url = aws_sqs_queue.q.id redrive_policy = jsonencode({ deadLetterTargetArn = aws_sqs_queue.ddl.arn maxReceiveCount = 4 }) }
Related[edit]
- Using dead-letter queues in Amazon SQS
- Amazon SNS dead-letter queues (DLQ)
- aws_sns_topic_subscription: redrive_policy
See also[edit]
Advertising: