This script will pump AWS SQS Messages from one queue into another queue.
./pump_sqs.sh {profile} {source-sqs-url} {target-sqs-url} [{iterations}]profile: a aws-cli profilesource-sqs-url: the source sqs url. _Example:https://sqs.{ region }.amazonaws.com/{ account-id }/{ queue_name }target-sqs-url: the target sqs url. _Example:https://sqs.{ region }.amazonaws.com/{ account-id }/{ queue_name }iterations(default:1): the iterations
Pump 10 messages from the queue my_source_queue into my_target_queue
./pump_sqs.sh aws_customer_profile https://sqs.eu-central-1.amazonaws.com/666230815013/my_source_queue https://sqs.eu-central-1.amazonaws.com/666230815013/my_target_queue 10