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: main.py [-h] --src SOURCE_QUEUE --dst DESTINATION_QUEUE [--aws-keys]
--region REGION [--empty-receive EMPTY_RECEIVE]
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
--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.*
* 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.2.tar.gz
.
File metadata
- Download URL: phoenix_letter-0.3.2.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 190e838f1fba8f04058cf4e463364981db04898e5b7d6c47ee45d07266d0b3bf |
|
MD5 | e9e6ccf3fa941b7637a3f0b930e36d20 |
|
BLAKE2b-256 | 633ae4659c137e7eabbed915c67d1064eb5bdea1ba5fa76d8f1d912741dc11b8 |
File details
Details for the file phoenix_letter-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: phoenix_letter-0.3.2-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5315ac0c106d67547df57a5900c0b7f669ec4eab00f86e5260fa1506a89b934 |
|
MD5 | 4d947b601319ef4e4f41a0b2de40c39f |
|
BLAKE2b-256 | 2edfb954698bb42819afb7ccd624f19456524d987ede54ee48d3b0b3e7ae25bb |