elasticmq icon indicating copy to clipboard operation
elasticmq copied to clipboard

`listQueues()` returning real AWS SQS URL and what is the group id for ElasticMQ Fifo?

Open joaocasarin opened this issue 3 years ago • 0 comments

Well, there are two questions: What Group Id should I send for ElasticMQ FIFO queues in the params like this?:

Typescript:

const params: SQS.SendMessageRequest = {
        QueueUrl: AWS_QUEUE_URL,
        MessageBody: message,
        MessageGroupId: '1'
    };

MessageGroupId: '1' does work, but I have no idea what it should be for this simulation.

Second, if I don't set the endpoint to my elasticmq queue url right when I instantiate the SQS class, it logs my real SQS url:

const sqs = new SQS();
console.log(await sqs.listQueues().promise());

Output:

{
  ResponseMetadata: { RequestId: 'a354ffce-d4e4-5a79-b0bc-a4a13582ffb9' },
  QueueUrls: [
    'https://sqs.sa-east-1.amazonaws.com/EXAMPLE_ACCOUNT_ID/EXAMPLE_QUEUE_NAME'    
  ]
}

Is that expected?

joaocasarin avatar Aug 12 '22 05:08 joaocasarin