Skip to content

bug: localstack standard sqs queue doens't support passing "MessageGroupId" for Fair Queues feature #12898

@dineshd30

Description

@dineshd30

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

AWS recently added new feature called Fair queue(for standard queue) which lowers dwell time and supports fair resource allocation when we have multi tenant traffic. In real AWS, you can pass a message-group-id (e.g., the tenant ID), but the latest LocalStack Pro doesn’t support this on non‑FIFO queues it actually panics when you do.

awslocal sqs send-message \
  --queue-url https://sqs.eu-west-1.amazonaws.com/000000000000/test-queue-ci \
  --message-body "test1" \
  --message-group-id "tenant-1" 

An error occurred (InvalidParameterValue) when calling the SendMessage operation: Value tenant-1 for parameter MessageGroupId is invalid. Reason: The request include parameter that is not valid for this queue type.

https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-fair-queues.html

Expected Behavior

awslocal sqs send-message \
  --queue-url https://sqs.eu-west-1.amazonaws.com/000000000000/test-queue-ci \
  --message-body "test1" \
  --message-group-id "tenant-1" 


{
    "MD5OfMessageBody": "dfdfdfdfddd",
    "MessageId": "ssfdd-e148-4959-979f-dddd"
}

No response

How are you starting LocalStack?

With a docker-compose file

Steps To Reproduce

How are you starting localstack (e.g., bin/localstack command, arguments, or docker-compose.yml)

docker run localstack/localstack

Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)

awslocal sqs send-message \
  --queue-url https://sqs.eu-west-1.amazonaws.com/000000000000/test-queue-ci \
  --message-body "test1" \
  --message-group-id "ten

An error occurred (InvalidParameterValue) when calling the SendMessage operation: Value tenant-1 for parameter MessageGroupId is invalid. Reason: The request include parameter that is not valid for this queue type.

Environment

- OS:
- LocalStack:
  LocalStack version:
  LocalStack Docker image sha:
  LocalStack build date:
  LocalStack build git hash:

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    aws:sqsAmazon Simple Queue Servicestatus: backlogTriaged but not yet being worked ontype: bugBug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions