Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bordeux/sqsmv
SQSmv - move messages from one queue to another
https://github.com/bordeux/sqsmv
aws cli noodejs sqs sqs-cli sqs-client sqs-mv sqs-queue sqsmv
Last synced: about 1 month ago
JSON representation
SQSmv - move messages from one queue to another
- Host: GitHub
- URL: https://github.com/bordeux/sqsmv
- Owner: bordeux
- License: wtfpl
- Created: 2019-10-28T21:07:00.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-08-20T17:43:50.000Z (5 months ago)
- Last Synced: 2024-11-11T11:39:10.654Z (about 2 months ago)
- Topics: aws, cli, noodejs, sqs, sqs-cli, sqs-client, sqs-mv, sqs-queue, sqsmv
- Language: JavaScript
- Homepage:
- Size: 57.6 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# sqsmv
Move all messages from one SQS queue, to another.
## Installation
### Source
npm install -g @bordeux/sqsmv
## Configuration
No configurations. Script reading secrets directly from ENV or from AWS cli configuration. You can control script by official AWS Environment variables like: `AWS_SECRET_ACCESS_KEY`, `AWS_ACCESS_KEY_ID` ,`AWS_REGION` or just `AWS_PROFILE`
## Usage
Usage: sqsmv -s [string] -d [string] -p [num]
Options:
--help Show help [boolean]
--version Show version number [boolean]
-s, --source Source queue (name or url) [required]
-d, --destination Destination queue (name or url) [required]
-p, --parallel [required] [default: 10]
Examples:
sqsmv -s main_dead -d main Move messages from main_dead back to main queueSupply source and destination URL endpoints.
sqsmv -s https://region.queue.amazonaws.com/123/queue-a -d https://region.queue.amazonaws.com/123/queue-b
or
sqsmv -s queue-a -d queue-b
## Seeing is believing :)
Create some SQS messages to play with using the AWS CLI.
for i in {0..24..1}; do
aws sqs send-message \
--queue-url https://ap-southeast-2.queue.amazonaws.com/123/wat-a
--message-body "{\"id\": $i}"
done## Thank you
Thank you for [SQSmv implementation in go](https://github.com/scottjbarr/sqsmv)## License
The MIT License (MIT)
Copyright (c) Chris Bednarczyk
See [LICENSE.md](LICENSE.md)