This is a Docker image that helps with handling failed messages in an SQS or Lambda based processing environment by moving messages from one queue to another or queue to lambda.
It's also possible to fake file drop events to queues based on S3 objects matching a given prefix or matching a date span based on the filename.
docker run --rm -it \
-e AWS_ACCESS_KEY_ID=$(aws configure get aws_access_key_id --profile ${AWS_PROFILE:-default}) \
-e AWS_SECRET_ACCESS_KEY=$(aws configure get aws_secret_access_key --profile ${AWS_PROFILE:-default}) \
-e AWS_SESSION_TOKEN=$(aws configure get aws_session_token --profile ${AWS_PROFILE:-default}) \
bambora-dkr.jfrog.io/queue-tools \
queue-to-queue \
--origin-queue https://sqs.eu-west-1.amazonaws.com/254506858912/bambora-custexp-ems-interval-queue-dead-letters-dev-eu-west-1 \
--target-queue https://sqs.eu-west-1.amazonaws.com/254506858912/bambora-custexp-ems-interval-queue-dev-eu-west-1
Pass in any of the following operations as the first argument before the flags.
queue-to-queueMoves the messages from the origin-queue to the target-queue.
--origin-queue The queue to move messages from--target-queue The queue to send messages fromdocker run --rm -it bambora-dkr.jfrog.io/queue-tools \
queue-to-queue \
--origin-queue https://sqs.eu-west-1.amazonaws.com/254506858912/bambora-custexp-ems-interval-queue-dead-letters-dev-eu-west-1 \
--target-queue https://sqs.eu-west-1.amazonaws.com/254506858912/bambora-custexp-ems-interval-queue-dev-eu-west-1
queue-to-lambdaMoves the messages from the origin-queue and triggers them as events on the target-function.
--origin-queue The queue to move messages from--target-function The lambda function to triggerdocker run --rm -it bambora-dkr.jfrog.io/queue-tools \
queue-to-lambda \
--origin-queue https://sqs.eu-west-1.amazonaws.com/254506858912/bambora-surway-notifications-dead-letters-dev-eu-west-1 \
--target-function surway-notifications-dev-eu-west-1
bucket-to-queueGenerate SQS messages based on objects in origin-bucket and put them on target-queue.
--origin-bucket The bucket to base the messages on--target-queue The queue to put messages on--prefix The prefix to use when listing objects.--s3-event-transform Space separated list of transformations of the generated S3 PutObject event message. (See help for valid values). All events will be based on an S3 PutObject event message which will be piped through each type.--from-date Date to filter out S3 objects from (date is read in from the date)--to-date Date to filter out S3 objects to (date is read in from the date)--s3-key-date-pattern The pattern to use for finding the date part in the S3 keydocker run --rm -it bambora-dkr.jfrog.io/queue-tools \
bucket-to-queue \
--origin-bucket bambora-bi-storage-data-lake-dev-eu-west-1 \
--target-queue https://sqs.eu-west-1.amazonaws.com/254506858912/bambora-bi-storage-data-lake-queue-dev-eu-west-1 \
--s3-event-transforms sns \
--from-date 2018-08-01 \
--to-date 2018-09-19
Content type
Image
Digest
Size
45 MB
Last updated
almost 7 years ago
docker pull akino1976/queue-tools