Connecting to Amazon SQS using boto


I am trying to connect to a Amazon SQS via the python boto library.

I have stored my credentials on the ~/.aws/credentials file

But when I execute the code I get an error

botocore.exceptions.ClientError: An error occurred (AccessDenied) when
calling the ListQueues operation: Access to the resource is denied.

I tried connecting directly to the queue.
LCqueue = sqs.get_queue_by_name(QueueName=’myQueue’)

But then it tells me there is no such queue. Even though I can see it on the AWS management console. Any ideas ?

I also get an error on my IAS managment console. where I cant list any users.

enter image description here
enter image description here


I ended up using the previous version of Boto (2)

Leave a Reply