In my application we are using aws SDK along with Nodejs, i have a source queue and DLQ Queue, i need to programatically trigger "Start DLQ Redrive", Through the console it is pretty strighforward, but how we can trigger this programatically, i couldnt able to find a documentation or code example for this, can anyone help me find a code example or documentation releated to it
CodePudding user response:
The DLQ Redrive is a feature only available in the AWS Console and not provided in the CLI at this time.
You can make a DLQ replay using a tool like replay-aws-dlq
(https://github.com/garryyao/replay-aws-dlq) or sqsmover
(https://github.com/mercury2269/sqsmover).
You can use replace-aws-dlq
like this:
npx replay-aws-dlq https://sqs.eu-west-3.amazonaws.com/ACCOUNT_ID/DLQ_SQS_QUEUE_ID https://sqs.eu-west-3.amazonaws.com/ACCOUNT_ID/ORIGIN_SQS_QUEUE_ID
.