3 Respostas
- Mais recentes
- Mais votos
- Mais comentários
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"
respondido há um ano
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
respondido há um ano
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