motdotla / node-lambda

Command line tool to locally run and deploy your node.js application to Amazon Lambda
BSD 2-Clause "Simplified" License
1.36k stars 185 forks source link

Node-lambda loses file permissions #355

Open ARAtlas opened 7 years ago

ARAtlas commented 7 years ago

I have a lambda function that processes MP3s. One of the files in my project is an FFMPEG binary which requires execute permissions so that my Node code can execute it. The binary has the needed permissions on my local computer, and everything works locally, but when I use node-lambda to deploy to AWS the permissions are lost (the binary ends up with just read permission) so it can't be executed. I'm able to work around the issue by zipping this project by hand and uploading the ZIP file to AWS the old fashioned way--the needed file permissions are preserved when I ZIP it by hand.

abetomo commented 7 years ago

@ARAtlas What version of node-lambda do you use?

demian85 commented 7 years ago

Something similar is happening to me... I cannot npm install because I lack write permissions somewhere. Using v0.11.3

abetomo commented 7 years ago

@demian85 The ARAtlas problem looks like #333. However, I thought that the problem of @demian85 is different from that. Could you please tell us a little more?

ARAtlas commented 7 years ago

Sorry for the delay. I was using v0.11.0. I agree that my problem sounds like #333.

abetomo commented 7 years ago

@ARAtlas Thank you for your reply. If I had the same problem as #333, I think that the latest version has been solved, so can you try it? (The latest is 0.11.3)