Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS SQS - Append data to message on retries

I have a SQS queue which is accessed by a lambda. I'm leveraging the retry capability provided by SQS using redrive policy and forwarding the message to a dead letter queue on max retries. I would like to append additional data to the message on each retry , but would like SQS to continue managing the retries. Is this possible?

like image 400
Punter Vicky Avatar asked Sep 20 '25 12:09

Punter Vicky


1 Answers

This is not possible.

The ReceiveMessages action provides an attribute called ApproximateReceiveCount, which is a counter that automatically increments with each receive... but otherwise, it isn't possible to change anything about a message in the queue.

like image 119
Michael - sqlbot Avatar answered Sep 22 '25 00:09

Michael - sqlbot



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!