sqs-queue-parallel icon indicating copy to clipboard operation
sqs-queue-parallel copied to clipboard

listQueues is used where getQueueURL would be sufficient

Open dantman opened this issue 9 years ago • 2 comments

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.

dantman avatar Sep 05 '14 06:09 dantman