sqs-queue-parallel
sqs-queue-parallel copied to clipboard
listQueues is used where getQueueURL would be sufficient
It appears this library uses sqs.listQueues
and some convoluted regexp matching in order to discover the QueueUrl it is supposed to use.
The AWS API and SDK provide a sqs.getQueueUrl
method, which accepts a queue name and returns the QueueUrl. No need to provide permissions to list all queues on the account, regexp match urls whose formats are not guaranteed, or discard QueueUrls for queues that happen to begin with the name you give but don't match.