quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.57k stars 2.63k forks source link

lambda layer #19698

Open mutasemhidmi opened 3 years ago

mutasemhidmi commented 3 years ago

Description

Is it possible to add layers to AWS lambda ?

Implementation ideas

No response

quarkus-bot[bot] commented 3 years ago

/cc @matejvasek, @patriot1burke

patriot1burke commented 3 years ago

details? Don't know what a "layer" is.

mutasemhidmi commented 3 years ago

All the details are here https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html. Basically, it's a shared code between your lambdas. It can used to download the desired packages for your lambdas that you wanna share between, and this way you can create smaller size functions, which improves performance.

patriot1burke commented 3 years ago

We don't have anything to make this easier, but you should be able to manually shrink the function.zip deployment that Quarkus creates and define your own cloud formation config. This is a worthy feature for Quarkus though and will add it to my queue.