Resolving AWS Lambda "Permission Denied" with docker image

If you get the error with "Permission denied: '/app/function.py'" for a Lambda function that uses a docker image. You need to update the 'docker file' with

"RUN chmod -R o+rX ."

to change the file mode where all files and folders in the current directory is readable by any user.


Reference: https://docs.aws.amazon.com/lambda/latest/dg/troubleshooting-deployment.html

Seyedmohammadtaghi Ghandili

Backend Developer / AI Master Student @ JKU Linz

5 个月

Thank you????????????

回复

要查看或添加评论,请登录

Wesley Siow的更多文章

社区洞察

其他会员也浏览了