Closed danielortizglobant closed 2 years ago
You need to give your AWS account permissions to also ListQueues in the right region. This is because SqsListener doesn't just try to access the queues directly but to list and check if they exist.
I had the same issue, my organization work with different queues and as a restriction each component is only allowed to see the required queues. As result was not possible to call the list_queues. After look the logic on the _initialize_client the list_queues is used to get the queue_url or create it if not exist.
Would be wondefull if this list_queues could be conditioned to a param, check_queues_config = True
, or something like that.
By the moment i extended the SqsListener class and override the method removing the list_queue and setting on True the variables.
@lordvault you're more than welcome to submit a PR with that feature!
Im trying to follow the tutorial but shows me and error