Skip to content
Advertisement

Tag: aws-lambda

AWS Lambda function handler missing

I created the following lambda function and its given me the following error. I am new to Python and I dont think there’s anything missing in the function. can someone please help to make this function work? Thanks Execution result Answer Very simple. Rename handler to lambda_handler, or change your lambda configuration to use the handler called handler rather than

How to upload pandas, sqlalchemy package in lambda to avoid error “Unable to import module ‘lambda_function’: No module named ‘importlib_metadata'”?

I’m trying to upload a deployment package to my AWS lambda function following the article https://korniichuk.medium.com/lambda-with-pandas-fd81aa2ff25e. My final zip file is as follows: https://drive.google.com/file/d/1NLjvf_-Ks50E8z53DJezHtx7-ZRmwwBM/view but when I run my lambda function I get the error Unable to import module ‘lambda_function’: No module named ‘importlib_metadata’ My handler is named lambda_function.lambda_handler which is the file name and the function to run. I

Advertisement