Code Monkey home page Code Monkey logo

sqsmv's Introduction

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 queue

Supply 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

License

The MIT License (MIT)

Copyright (c) Chris Bednarczyk

See LICENSE.md

sqsmv's People

Contributors

bordeux avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.