Is somebody using Lambda in Docker? I’ve never hea...
# sst
a
Is somebody using Lambda in Docker? I’ve never heard about this, but now my Python developer deployed some stuff following this tutorial: https://aws.amazon.com/es/blogs/compute/hosting-hugging-face-models-on-aws-lambda/
s
Hmm, you mean they are running docker in the lambda?
a
I think is the opposite.
You can provide the docker with the lambda.
s
mind blown
😄
a
I didn’t know we can use docker image on lambda.
f
haha it was announced around last year’s reinvent time. With standard Lambda function, unzipped code size could be 250MB. But in docker image mode, it’s something like 10GB i think?
There were some limitation like the first cold request might fail… (I might be wrong)
a
Yeah.
I need to implement this with CDK/SST.
Due my AI team uses bunch of things on Python.
And apparently some libraries are huge.
f
sst.Function
currently doesn’t support docker based Lambda. You can use CDK’s
lambda.DockerImageFunction
construct for this.
a
Yeah makes sense.
Going to check that one.
Thank you @Frank.
It’s funny with Serverless, everyday learning something new 😂 .