AWS Lambda import module error in python

后端 未结 21 1526
醉话见心
醉话见心 2020-12-07 19:56

I am creating a AWS Lambda python deployment package. I am using one external dependency requests . I installed the external dependency using the AWS documentation http://do

21条回答
  •  鱼传尺愫
    2020-12-07 20:10

    Another source of this problem is the permissions on the file that is zipped. It MUST be at least world-wide readable. (min chmod 444)

    I ran the following on the python file before zipping it and it worked fine.

    chmod u=rwx,go=r
    

提交回复
热议问题