3 Antworten
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
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"
beantwortet vor einem Jahr
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
beantwortet vor einem Jahr
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 3 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
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