| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This project provides the missing AWS Lambda base image for Java 17, 18, 19, 20, and 21. The base images are publicly available in the ECR Public Gallery. You should be able to use them directly in your builds. I use these images in production for personal and commercial projects today, but per the license, there is no warranty, and YMMV.
This project uses the following process to create new Lambda base images:
You can find an example Lambda function using these base images at aleph0io/example-java-lambda-function. It's just like building any container lambda function. For ease of use, find the Dockerfile below. Note the FROM image. Java versions 17-20 are also supported.
FROM public.ecr.aws/aleph0io/java/lambda:21-al2
COPY target/hello-lambda.jar "${LAMBDA_TASK_ROOT}/lib/"
CMD [ "com.sigpwned.lambda.hello.HelloLambda::handleRequest" ]
The Lambda RIE is not currently built into these lambda base images, so to test your lambda function implementations locally, you will need to use the standalone RIE server.
You can find writeups of the Java 17, 18, 19, 20, and 21 on my blog.
Many thanks to @rieckpil for his outstanding writeup of custom Lambda runtimes. That tutorial was the foundation and basis for this build. Cheers!
Also, thank you to @msailes for the example Java 17 Lambda layer. This prior art was also critically important to understanding how best to integrate a new Java version into Lambda.
Managed by @sigpwned.
| Back | FazBrowse Home | New Git URL |