awscli-sqsall

awscli plugin to treat SQS queues more like files


License
MIT
Install
pip install awscli-sqsall==1.0.2

Documentation

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.