Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Work around for AWS Lambda 500MB /tmp storage limit

Is it possible to add temporary storage space to AWS Lambda so I can write files larger than 500 MB before I upload those to S3? Is NFS/EFS possible?

Thank you.

like image 998
BBDG Avatar asked May 23 '17 23:05

BBDG


1 Answers

Nope. You shouldn't rely on it. And EFS isn't an option either.

Also, the time taken to download a file more than 500MB depends on network conditions and you won't able to predict before hand how long will it take for the function to complete.

Your lambda function must complete execution within 300 seconds.

Moreover, if multiple instances of this lambda function are invoked, you will always be constrained for storage space if all requests are going to process files larger than 500MB.

You are better off, moving this functionality outside lambda.

like image 76
Yeshodhan Kulkarni Avatar answered Sep 27 '22 17:09

Yeshodhan Kulkarni