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

renanvieira/phoenix-letter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

dbe0a7c · Dec 23, 2018

History

26 Commits
Dec 23, 2018
Dec 23, 2018
Dec 23, 2018
Dec 17, 2018
Dec 23, 2018
Dec 23, 2018
Dec 23, 2018
Dec 23, 2018
Dec 23, 2018
Dec 23, 2018
Dec 23, 2018

Repository files navigation

Phoenix Letter Build Status License: MIT

Command line script to help moving messages from DLQ back to the main queue for reprocessing in AWS SQS. Can be used to move messages to any other queue.

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]
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 before the script gives up trying to get message from queue.*

* 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 lnk from AWS docs.