1 min readDec 26, 2019
Arvin, without comparing your code to mine, it’s hard to say. The error message suggests that possibly something is not “visible” when trying to invoke. Do you have an AWS account and credentials? Is something in your class readonly or private?
You may want to google the error message and see if anything applies to your code.
What I would do is simplify the code down by taking out the class and just have the Lambda return a number or string. In other words, reduce the complexity of the code. Keep me informed.