Move all messages from one SQS queue to another.
git clone [email protected]:vercel/sqsmv.git
cd sqmv
go build
Note: DO NOT use go get
. It will install an old version
The AWS_SECRET_ACCESS_KEY
, AWS_ACCESS_KEY_ID
, and AWS_REGION
environment variables must be set.
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 (
sqsmv -src https://region.queue.amazonaws.com/123/queue-a -dest https://region.queue.amazonaws.com/123/queue-b -maxMsgCount 20
The MIT License (MIT)
Copyright (c) 2016-2018 Scott Barr
See LICENSE.md