New for AWS Lambda – Functions with Up to 10 GB of Memory and 6 vCPUs

New for AWS Lambda – Functions with Up to 10 GB of Memory and 6 vCPUs

Finally! I’ve had to deal with data that needs about 4GB per execution

All the JS kids can finally use lambda again. Damn npm packages…

Still limited to 15min execution time?

Still limited to 500mb of tmp storage?

Yeah it would go a long way for CDK pipelines, 15min can often be short for some CDK deployments

Yes, that’s for writable storage.

I’m newish to AWS, can you explain what you mean by this? And how a deploy would invoke a lambda for >15 minutes? Thanks!

If you are using a node lambda to run your CDK pipeline, it could be that your stack includes something like a cloudfront distribution or elasticsearch domain that take a long time to deploy. I have not actually used CDK yet but if it is anything like terraform, it will wait for it to be fully deployed before continuing so it might be sitting there for like half an hour.

I just don’t get why there is an arbitrary limit. I get that lambda may not be your best option if you have that use-case, but this isn’t a perfect world and a little more wiggle-room can go a long way. If I have 49/50 jobs that run under 5mins no prob, but have one job that might run right on the border line its nice not to have to introduce another moving part for that one job.

Not if you mount EFS to it

I don’t have much experience with Lambda besides Hello World. What kind of function would use that much horsepower?

Why not use the native CDK pipelines construct? It generates the assets then uses codepipeline to run and track the stack deployment, so you’re not paying for execution time of the CLI that is mostly just watching cloudformation?

! I’ve had to deal with data that needs about 4GB per execution

Could you elaborate on your use case a bit? I’m curious what could be done in a well written function that would require that much memory and not be better suited for long running container or full instance?

Perhaps processing large files like video, or audio? :man_shrugging:

I’ve got a Lambda that processed up to 600MB of data. I just do it all with BytesIO on python to have files in RAM. Its a bizarre situation where you have more RAM than disk, but it works.

I’m guessing CICD pipelines which are compiling stuff.

Personally I use Lambda to unzip zip files that get uploaded to S3. That can take up to 700MB, but the same use case for bigger files could be 10GB.

Hi, I work in the AWS Serverless Team . Just to point out, Lambda max running time is 15 minutes, not 5.

I need to essentially calculate cross correlations and compute the trajectory in 50 frames of a movie , 4K x 5k pixels , 32 bits per pixel

I had an instance about half a year ago where we were calculating quality metrics for a chemical product using step functions and lambdas + generate corresponding graphs (up to 3 graph types, 1 to 5 states, 10-15 different metrics per product and an N amount of data points since the first one). We maxed out everything but we were still getting timeouts. We told them to generate their report one by one, which was a bit embarrassing. We eventually moved the graph generation last minute to ECS to make sure tge lambdas wouldn’t timeout.