SQS Redrive Policy
{
"deadLetterTargetArn": "arn:aws:sqs:us-east-1:123:task-queue-dlq",
"maxReceiveCount": 5
}
After 5 receive attempts, SQS automatically moves the message to the DLQ.
The DLQ retains messages for 14 days (max) — gives operators time to investigate.
Re-drive from DLQ back to the main queue:
aws sqs start-message-move-task \
--source-arn arn:aws:sqs:us-east-1:123:task-queue-dlq \
--destination-arn arn:aws:sqs:us-east-1:123:task-queue