0

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

enter image description here

yasarui
  • 6,209
  • 8
  • 41
  • 75

1 Answers1

1

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.

Eric Ly
  • 2,095
  • 1
  • 20
  • 27
  • can i use replay-aws-dlq inside a nodejs application. the example you are showing is like running from command prompt – yasarui Dec 12 '22 at 10:33
  • Of course you can. My example with replace-aws-dlq is running a Node.js application under the hood that you can replicate, using the source code provided by the GitHub repository. – Eric Ly Dec 12 '22 at 13:46