Git Product home page Git Product logo

tool-sqs-dlq-replay's Introduction

SQS Dead Letter Replayer

Binaries for handling SQS Dead Letter Queues:

  • sqs-dead-letter-requeue: Requeue all messages from dead letter queue to related active queue. Can set max number of messages to be replayed (won't be exactly respected)

Usage

usage: dlq-replay [<flags>] <destination-queue-name>

Requeues messages from a SQS dead-letter queue to the active one.

Flags:
  --help   Show help.
  --source-queue-name=SOURCE-QUEUE-NAME  
           Name of the source SQS queue (e.g. prod-service-crm-v2-webhooks-ringover-dlq).
  --account-id=ACCOUNT-ID  
           AWS account ID. (e.g. 123456789)
  --jms-class=JMS-CLASS
           Java class for jms. (e.g.
           'com.sevensenders.datahub.shipment.service.dto.ShipmentDTO')
  --max=0  Max number of messages to requeue. 0 means all messages. This will not be exactly respected due to AWS batch size
Args:
  <destination-queue-name>  
    Name of the destination SQS queue (e.g. prod-service-crm-v2-webhooks-ringover).

Dev

  • Golang

Building it

go build -o bin/dlq-replay sqs-dead-letter-requeue/main.go

Running it

Make sure you have the environment variables for AWS set

export AWS_ACCESS_KEY_ID=<my-access-key>
export AWS_SECRET_ACCESS_KEY=<my-secret-key>
export AWS_REGION=<aws-region>

Then

bin/dlq-replay --max=15000 --account-id=45526666666 --source-queue-name=prod_example_dead-letter --jms-class=com.example.service.dto.ShipmentDTO prod_example```

tool-sqs-dlq-replay's People

Contributors

schnipseljagd avatar fstehle avatar yachaka avatar 7silyasov 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.