You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using chalice deploy to deploy a project from Mac OS 11.1, the permissions of files chalice/app.py and chalice/__init__.py that are packaged by chalice are not open enough, leading to the following error:
If you look at the deployment it becomes apparent that chalice/app.py and chalice/__init__.py do not have 644 permissions as required by lambda:
I was able to fix this by simply using chmod 644 to change the permissions on chalice source code:
Now it is packaged with the appropriate level of permissions:
Not sure what the best way forward would be as far as making sure the permissions are correct by default when installing chalice with pip, but I figured I would at least post this to give a solution for others running in to the same issue.
The text was updated successfully, but these errors were encountered:
I believe what's happening is that if you install chalice globally, it uses -rw------- for the chalice library files. We preserve the file permissions when we zip a file so we should be able to special case the built-in chalice files to ensure they're always readable by all.
However, I would recommend using a virtualenv if possible, it should also fix this issue for you.
We are experienced the same issue. Is there a mechanism in Chalice to trigger a script locally prior to creating the zip so that file permissions can be correctly set?
When using
chalice deploy
to deploy a project from Mac OS 11.1, the permissions of fileschalice/app.py
andchalice/__init__.py
that are packaged by chalice are not open enough, leading to the following error:If you look at the deployment it becomes apparent that
chalice/app.py
andchalice/__init__.py
do not have 644 permissions as required by lambda:I was able to fix this by simply using
chmod 644
to change the permissions on chalice source code:Now it is packaged with the appropriate level of permissions:
Not sure what the best way forward would be as far as making sure the permissions are correct by default when installing chalice with pip, but I figured I would at least post this to give a solution for others running in to the same issue.
The text was updated successfully, but these errors were encountered: