Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vercel/sqsmv

Move messages between two SQS queues
https://github.com/vercel/sqsmv

Last synced: 3 months ago
JSON representation

Move messages between two SQS queues

Awesome Lists containing this project

README

        

# sqsmv

Move all messages from one SQS queue to another.

## Installation

### Source

```
git clone [email protected]:vercel/sqsmv.git
cd sqmv
go build
```

Note: **DO NOT** use `go get`. It will install an old version

## Configuration

The `AWS_SECRET_ACCESS_KEY`, `AWS_ACCESS_KEY_ID`, and `AWS_REGION`
environment variables must be set.

## Usage

Supply source and destination URL endpoints.

sqsmv -src https://region.queue.amazonaws.com/123/queue-a -dest https://region.queue.amazonaws.com/123/queue-b


You can also limit the number of messages you want to move (⚠️ note that the limit is approximate - in the worse case you will get 10 more messages than the limit you entered):

sqsmv -src https://region.queue.amazonaws.com/123/queue-a -dest https://region.queue.amazonaws.com/123/queue-b -maxMsgCount 20

## License

The MIT License (MIT)

Copyright (c) 2016-2018 Scott Barr

See [LICENSE.md](LICENSE.md)