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 10 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

+1 vote for this. Otherwise I would put something in the documentation about AWS requiring permissions. For anyone else that gets stuck with a strange undefined queue error, you will need to go in and create a new permission for the queue you are trying to use in AWS. You will probably have this issue even if you are the admin (I did).

larron avatar Nov 25 '14 05:11 larron

@larron @dantman Im working on a project to replace this. and also did this change :) will release soon. https://github.com/sallar/sqs-parallel

sallar avatar Dec 06 '17 21:12 sallar