Created a lambda function to retrieve value from dynamodb.When I am testing the function I am getting an error in response?
Couldn’t find any answer on the internet.
Created a lambda function to retrieve value from dynamodb.When I am testing the function I am getting an error in response?
Couldn’t find any answer on the internet.
2
Answers
Your function should be named
lambda_handler
The documentation provides more information on this here:
https://docs.aws.amazon.com/lambda/latest/dg/python-handler.html
Seems like in line 6 you have used
instead of
If you want to keep using def handler(event,context): you also need to enter this in ‘Handler’ option in ‘Runtime Settings’