Skip to main content

CLI to move messages from a AWS SQS Queue to another

Project description

# Phoenix Letter [![Build Status](https://travis-ci.com/renanvieira/phoenix-letter.svg?branch=master)](https://travis-ci.com/renanvieira/phoenix-letter) ![](coverage.svg) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/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:
```bash
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](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-long-polling.html).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

phoenix_letter-0.1.2.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file phoenix_letter-0.1.2.tar.gz.

File metadata

  • Download URL: phoenix_letter-0.1.2.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

File hashes

Hashes for phoenix_letter-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4d46fd677bf1ccea90634910d2a8b7dce51fed0b4b20a860be655a02c57399b5
MD5 fd3a5f4adbd8a13aabf36e170d791f8e
BLAKE2b-256 cb58347a6eeef1c8af8313833b31bc9a6518fce9e80cadbd958fb8a573f2c8a3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page