I am getting exception in AWS lambda function as below for python program with MongoDB:-
{
  "errorMessage": "Unable to import module 'lambda_function': No module named 'pymongo'",
  "errorType": "Runtime.ImportModuleError"
}
But Pymongo added as a layer in lambda & also associated with the lambda function.