"[Errno 13] Permission denied" when trying to access file with AWS Lambda

So when trying to open a file included in my deployment package im getting this permission denied error. Ive tried to create the Lambda function manually with the AWS webpage, and it works fine. But for some reason the deployment does something weird that makes it not work trough SLS.

My googling tells me it has something todo with the way SLS zip the deployment package. Not sure.

All help deeply appretiated.

Figured it out myself. One of the file was a .key file. And on my mac only i had read access to it. Changed that and its working.