Skip to content

CLI to bring your messages back from SQS Dead Letter Queues.

License

Notifications You must be signed in to change notification settings

JohnNeville/phoenix-letter

 
 

Repository files navigation

Phoenix Letter Build Status License: MIT

Bring your messages back from Dead Letter Queue with this command line script that helps you moving messages from DLQ back to the main queue for reprocessing in SQS. It also can be used to move messages between queues in SQS.

Usage

After installation you will have a command with the following params:

usage: phoenix_letter [-h] --src SOURCE_QUEUE --dst DESTINATION_QUEUE
                      --access-key AWS_USER_ACCESS_KEY --secret-key
                      AWS_USER_SECRET_KEY --region REGION
                      [--empty-receive EMPTY_RECEIVE]
                      [--max-messages MAX_MESSAGES]
                      [--messages-per-loop MESSAGES_PER_LOOP]
phoenix_letter: error: the following arguments are required: --src, --dst, --access-key, --secret-key, --region
  • --src: Source Queue Name
  • --dst: Destination Queue Name
  • --access-key: AWS Access Key, make sure that the account used here has access to both queues.
  • --secret-key: AWS Secret Key, make sure that the account used here has access to both queues.
  • --region: AWS Region.
  • --empty-receive: [OPTIONAL][default value=10] Number of empty receives b efore the script gives up trying to get message from queue.*
  • --max-messages: [OPTIONAL][default value=-1(Disabled)] Number of total messages to move
  • --messages-per-loop: [OPTIONAL][default value=10] Number of messages to load per receive

* Sometimes the SQS returns false empty receives, where there is messages on queue but for some reason AWS decided not return anything on that requests. To understand more here a link from AWS docs.

About

CLI to bring your messages back from SQS Dead Letter Queues.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 98.4%
  • Makefile 1.6%