Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k points)

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

1 Answer

0 votes
by (44.4k points)

Take a look at these links for a better understanding of how to use Java in Lambda:

http://docs.aws.amazon.com/lambda/latest/dg/java-programming-model-req-resp.html 

and

http://docs.aws.amazon.com/lambda/latest/dg/java-gs.html

Also, check out this Docker AMI:

https://github.com/lambci/docker-lambda

Related questions

0 votes
1 answer
Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...