3 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
In some cases the error is related to a bad configuration in the value of handler. The handler value in the lambda configuration must have the value of the file.method. If your file is called _main.py and your method is called handler then you should set the value of the lambda handler to the following value "_main.handler"
répondu il y a un an
0
Did you zip it the same way as the procedure here?
https://repost.aws/knowledge-center/lambda-import-module-error-python
Yes, I did exactly the same: '>zip -r packaged.zip package '
packaged.zip |_libraries [...] |_file.py |_main.py
0
It's working now. I've rebuilt my project from scratch but I still don't know why it didn't worked earlier
répondu il y a un an
Contenus pertinents
- demandé il y a un an
- demandé il y a 7 mois
- AWS OFFICIELA mis à jour il y a 4 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 4 mois
Yes. That is exactly what I have. My file is called main.py and my function is called lambda_handler. In AWS, my function handler is main.lambda_handler