CLI to move messages from a AWS SQS Queue to another
Project description
Phoenix Letter
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 SQS queues. It also can be used to move messages between queues in SQS.
Install
Manually
- Mac/Linux:
python3 setup.py install
- Windows:
py setup.py install
PyPi
pip install phoenix_letter
Usage
After installation you will have a command with the following params:
$ phoenix_letter --help
usage: phoenix_letter [-h] --src SOURCE_QUEUE --dst DESTINATION_QUEUE [--aws-keys] --region REGION [--empty-receive EMPTY_RECEIVE] [--max N] [--max-per-request N]
optional arguments:
-h, --help show this help message and exit
--src SOURCE_QUEUE Source SQS Queue Name
--dst DESTINATION_QUEUE
Destination SQS Queue Name
--aws-keys Flag that indicates you want to enter custom AWS keys.
--region REGION AWS Region
--empty-receive EMPTY_RECEIVE
Max number of empty receives before giving up
--max N Max number of messages to process from the source queue.
--max-per-request N Max number of messages to received from the source queue per request (this will be pass in the MaxNumberOfMessages param). Default: 10 (AWS API max limit)
--src
: Source Queue Name--dst
: Destination Queue Name--aws-keys
: [OPTIONAL] The CLI will prompt you to enter the AWS keys securely. Default: Fallback to Boto, more information here.--region
: AWS Region.--empty-receive
: [OPTIONAL][default value=10] Number of empty receives before the script gives up trying to get message from queue.*--empty-receive
: [OPTIONAL][default value=10] Number of empty receives before the script gives up trying to get message from queue.*--max
: [OPTIONAL][default value=0] Number of messages to process from the source queue.0
means everything*--max-per-request
: [OPTIONAL][default value=10] Max number of messages to received from the source queue per request (this will be pass in the MaxNumberOfMessages param). Default: 10 (AWS API max limit)
* 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file phoenix_letter-0.3.4.tar.gz
.
File metadata
- Download URL: phoenix_letter-0.3.4.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64f2732a85dde95abaa9fc30c0fe7e14d89a17d00fd697b1c3fd983b54a58693 |
|
MD5 | a95c3bde6de5cd6357a23e02528abf86 |
|
BLAKE2b-256 | 6675ba14a6aaf6f5e569c22c1ca56da49b54ca53a9d188e9c0436f8cc8f45938 |
File details
Details for the file phoenix_letter-0.3.4-py3-none-any.whl
.
File metadata
- Download URL: phoenix_letter-0.3.4-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c30c6dbec433169d9227fe6ac02476cd55d525ed28d5113783b9edfc99e9ca4c |
|
MD5 | 0ef0cffc5db114e2e7b527660218d31b |
|
BLAKE2b-256 | 963ed87704662ff239c5fb6daa2755eaadc847ccddb1c686e7fde601f690c223 |