Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[serverless-offline-sqs] Can't create explicit queues on AWS or sqslite #225

Open
tomusiaka opened this issue Oct 20, 2022 · 0 comments
Open

Comments

@tomusiaka
Copy link

When autoCreate is set to true, implicit queues get created fine. The request body for queue creation looks like this:

{
  Action: 'CreateQueue',
  QueueName: 'AutocreatedImplicitQueue',
  Version: '2012-11-05'
}

However, explicit queues (defined in resources) fail to get created on AWS SQS (when pointing actual AWS service), and on sqslite (when pointing locally to sqslite). The failure stems from the fact that the queue name is in an Attribute in request body:

{
  Action: 'CreateQueue',
  'Attribute.1.Name': 'QueueName',
  'Attribute.1.Value': 'AutocreatedQueue',
  QueueName: 'AutocreatedQueue',
  Version: '2012-11-05'
}

and the resulting error coming from AWS is InvalidAttributeName: Unknown Attribute QueueName, while sqslite fails silently with 400 (although internally it's the same attribute validation error).

I have not tested it on ElasticMQ, but if queue creation works on ElasticMQ, it would simply mean that ElasticMQ is lacking attribute validation and whenever they fix it/implement it to be consistent with AWS, queue creation will not work there either.

@tomusiaka tomusiaka changed the title [serverless-offline-sqs] Can't create explicit queue queues on AWS or sqslite [serverless-offline-sqs] Can't create explicit queues on AWS or sqslite Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant