Add library to aws lambda. ("errorMessage": "Unable to import module ‘lambda_function’: No module named ‘XXXXXl’")

  amazon-web-services, aws-lambda, package, python

I have a working AWS lambda, when I test it with an API Gateway, it compile.

Then I add import openpyxl and it crash, understandable but now.

Problem: How to add library to AWS lambda ?

.

Possible solution:

On AWS lambda interface -> Actions -> load zip

Problem: What do I put on the .zip ?

I found everything really easy till this moment where the documentation and the "Hello World tutorial" seems to disappear. But this is so important that I can’t image that to be difficult, no ?

Source: Python Questions

LEAVE A COMMENT