Error "Read-only file system" in AWS Lambda when downloading a file from S3 Error "Read-only file system" in AWS Lambda when downloading a file from S3 python python

Error "Read-only file system" in AWS Lambda when downloading a file from S3


According to http://boto3.readthedocs.io/en/latest/guide/s3-example-download-file.html

The example shows how to use the first parameter for the cloud name and the second parameter for the local path to be downloaded.

enter image description here

in other hand, the amazaon docs, saysenter image description here

Thus, we have 512 MB for create files.Here is my code for me in lambda aws, for me works like charm.

.download_file(Key=nombre_archivo,Filename='/tmp/{}'.format(nuevo_nombre))


I noticed when I uploaded a code for lambda directly as a zip file I was able to write only to /tmp folder, but when uploaded code from S3 I was able to write to the project root folder too.