'Run SQS on AWS SAM locally. Is it possible?

Good morning! does AWS SAM natively support sqs service? i am looking for a way to run sqs service locally?



Solution 1:[1]

Only in a limited sense and in no way "native". You can use SAM to locally test Lambdas that make outbound SDK calls to cloud-deployed SQS queues. You can invoke local Lambdas with mock triggering events to simulate invocation by queue messages.

See this answer to a related question, skipping point #1, which is specific to CDK applications.

Solution 2:[2]

This PR may interest you. It provides only basic emulation of AWS SQS with lambda.

https://github.com/aws/aws-sam-cli/pull/3643

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 fedonev
Solution 2 Trevor Howard