resend-message-queue / sqs-dl-queue
Resend messages in dead letter queues to the main queue in AWS SQS
1.0.1
2023-06-30 12:58 UTC
Requires
- php: >=8.1
- ext-ctype: *
- ext-iconv: *
- aws/aws-sdk-php: ^3.274
- symfony/console: 6.3.*
- symfony/dotenv: 6.3.*
- symfony/flex: ^2
- symfony/framework-bundle: 6.3.*
- symfony/runtime: 6.3.*
- symfony/yaml: 6.3.*
Conflicts
README
This is a Command line application to send messages from a dead letter queue in AWS SQS.
- This is a PHP application to work with AWS SQS to reply to the messages in the dead letter queue to the main queue, therefore consumers of the main queue could start to consume the message. In some scenario, the message could not consume for any error and after fixing the error message need to be replied to the main one.
Install
-
you need to install PHP and composer in your Docker, VM,pc and etc...
-
You need to run
composer install
to install packages -
You need to set the below variables in
.env
file:AWS_ACCESS_KEY_ID=yourkey AWS_SECRET_ACCESS_KEY=yoursecret AWS_REGION=eu-central-1 AWS_VERSION=latest AWS_ENDPOINT=https://sqs.eu-central-1.amazonaws.com
Command
bin/console rmq:resend-dl-messages MAIN-QUEUE-NAME
Sample
bin/console rmq:resend-dl-messages my-queue