Skip to content
Advertisement

How to connect to SQS queue

I have created several SQS queues in the management console.

All the queues have full access permission (Allow – Everybody – All SQS Actions)

I have created necessary credentials and can connect to AWS.

Now I am trying to connect to created queues:

JavaScript

But nothing is displayed.

At the same time, if I create queue programatically:

JavaScript

It is listed and I can send and receive messages from it.

BUT I don’t see created queue in Management Console!

What am I doing wrong?

BTW I can connect to queues created from Management Console by URL


If you are playing wih example from Amazon (like me) – keep in mind that BasicAWSCredentials contain only accessKey and secretKey, and region won’t be read from credentials file.

Region is being set up “manually” for AmazonSQSClient:

JavaScript

Advertisement

Answer

SQS queues are located in specific regions.

  1. Confirm which region your code is creating the region in, then
  2. Ensure you’re looking in that same region in the AWS Management Console.
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement