Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS EBS vs EFS with a Lambda function

I've a lambda function which processes large video files (greater than 512 mbs). The files are to be downloaded from an s3 bucket, processed using ffmpeg and then uploaded back to another s3 bucket. Currently, I'm using the /tmp/ directory by lambda but it has a limit of 512 mbs.

I've read somewhere that you can use EFS with lambda for this purpose but I think EBS could be used as well but I've not found anyone using that. Is there any particular reason that why EFS could be preferred over EBS in this scenario or with lambda functions in general?

like image 284
Osama Bin Saleem Avatar asked Oct 21 '25 04:10

Osama Bin Saleem


2 Answers

You can't use EBS volumes with lambda. They are used with EC2 instances only. For the lambda you can use EFS only.

like image 133
Marcin Avatar answered Oct 22 '25 23:10

Marcin


Lambda now supports 10GB of ephemeral storage, up from the previous limit of 512 mb. https://aws.amazon.com/blogs/aws/aws-lambda-now-supports-up-to-10-gb-ephemeral-storage/

like image 26
Osama Bin Saleem Avatar answered Oct 22 '25 22:10

Osama Bin Saleem