Copy messages from AWS SQS queue to another AWS SQS
Messages are only removed from origin queue if they have been successfully sent to the destination queue.
npm install -g sqs-copy
By default, the tool will pick up AWS credentials from the same places in the same pirorities as the AWS CLI.
Alternatively, you may explicitly create a config.json
with AWS credentials:
{
"accessKeyId": "********",
"secretAccessKey": "*********",
"region": "eu-west-1"
}
sqs-copy <origin_queue_url> <destination_queue_url>