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.
+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 @dantman Im working on a project to replace this. and also did this change :) will release soon. https://github.com/sallar/sqs-parallel