awscli plugin to treat SQS queues more like files
Project description
awscli-sqsall
awscli plugin to treat SQS queues more like files, with receive-all-messages
and
send-all-messages
.
Quickstart
receive-all-messages
dumps all messages to a files. send-all-messages
sends
all file lines as messages to a queue. FIFO queues are supported.
You should be able to do something like:
aws sqs receive-all-messages --queue my-dlq \
| sed '/some fault/d' \
| aws sqs send-all-messages --queue my-queue
Since receive-all-messages doesn't communicate with send-all-messages, and just deletes the message after printing, you might want to keep a backup. Try this instead:
aws sqs receive-all-messages --queue my-dlq \
| tee safe_place \
| sed '/some fault/d' \
| aws sqs send-all-messages --queue my-queue
Check the commands' help for more details.
Installing
pip install awscli-sqsall
aws configure set plugins.sqsall sqsall
Releasing
It happes on tag. Check the GitHub Actions.
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
awscli-sqsall-1.0.2.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for awscli_sqsall-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbc4eb4499d542576dd1cd1d87730c3186c892ebd1341e2ee23485d96075e410 |
|
MD5 | 8bf5d50e395f5ffa7211feb7f21e35a3 |
|
BLAKE2b-256 | 6a3fd6f6c6a7ba370b3731ff497271662e29c6a23ae153c7ce09c0d0997efa35 |