Skip to content

scottjbarr/sqsmv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sqsmv

Move all messages from one SQS queue, to another.

Installation

Source

go get github.com/scottjbarr/sqsmv

Binaries

Download the appropriate binary from the Releases page.

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

To run jobs in parallel, use -clients parameter:

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

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

License

The MIT License (MIT)

Copyright (c) 2016-2018 Scott Barr

See LICENSE.md

About

Move messages between two SQS queues

Resources

License

Stars

Watchers

Forks

Packages

No packages published