Today I received the following error when trying to deploy from Azure DevOps a lambda to AWS via a zip file in S3:
[ERROR] PermissionError: [Errno 13] Permission denied: '/var/task/inspector.py'
Traceback (most recent call last):
File "/var/lang/lib/python3.7/imp.py", line 300, in find_module
with open(file_path, 'rb') as file:
I was compressing the inspector.py using the Compress-Archive powershell function:
Continued on: https://ralphwillgoss.github.io/blog/2020/09/14/permission-error-when-deploying-lambda-from-zip-in-s3