11.02.2016 · With these values, you would need to rename the handler (shown in the screenshot) to cool.lambda_handler. This is one way to get rid of the "Unable to import module lambda_function " errorMessage. If you were to rename the handler in your python script to sup then you'd need to rename the handler in the lambda dashboard to cool.sup Share
21.10.2019 · Choose the runtimes as per your python version that you are using in your lambda function, or you can select multiple python runtime versions. Add this layer to your lambda function and you should be able to import your modules flawlessly.
28.12.2021 · Without importing this specific package, everything else works fine. Would really appreciate if someone can guide me how to resolve this issue. python amazon-web-services amazon-ec2 aws-lambda cython
16.09.2020 · Create lambda layer based on mylayer.zip in the AWS Console. Don't forget to specify Compatible runtimes to python3.8. Test the layer in lambda using the following lambda function: import httplib2 def lambda_handler(event, context): # TODO implement print(dir(httplib2)) return The function executes correctly:
26.07.2021 · It's a best practice to create a Lambda layer on the same operating system that your Lambda runtime is based on. For example, Python 3.8 is based on an Amazon Linux 2 Amazon Machine Image (AMI). However, Python 3.7 and Python 3.6 are based on the Amazon Linux AMI.