AWS Lambda 'python2.7' can not find my module handler.
START RequestId: c6f97261-ba61-11e7-aeaf-bfb6aa28f7bb Version: $LATEST
Unable to import module 'handler': No module named handler
END RequestId: c6f97261-ba61-11e7-aeaf-bfb6aa28f7bb
REPORT RequestId: c6f97261-ba61-11e7-aeaf-bfb6aa28f7bb Duration: 0.33 ms Billed Duration: 100 ms Memory Size: 1024 MB Max Memory Used: 19 M
handler.py
def handler(event, context):
return {'status': 'success'}
Folder structure:
- handler.py
Written on Windows 10, Deployed using serverless on Ubuntu VM from shared folder with host system. (virtualbox)