Search code examples
amazon-web-servicestestingaws-lambda

How can I test AWS Lambda functions locally?


Explain to me please what is the best way to locally test the lambda function. I used sam local and this solution https://github.com/lambci/docker-lambda for testing, but for example, where I invoke one lambda from another error occurs. In general, I can't make stubs for methods since lambda runs in a container


Solution

  • There are a couple of options. Following two are some popular ones.