Skip to content

Can I simulate max_concurrency and batch_size params in event_source_mapping using aws_lambda_simple and sqs mocks? #7325

Answered by bblommers
rishacha asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @rishacha! Moto isn't quite advanced enough to support your test case, I'm afraid. Invoking a function via an EventSource is done syncronously, so the batch_size will realistically always be 1. The MaximumConcurrency-argument isn't taken into account at all, for the same reason.

Maybe LocalStack may be a better fit? I don't know for sure whether they support it, but they tend to be better at emulating the real behaviour when it comes to AWSLambda Functions.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rishacha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants