You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project is no longer required, as [AWS Lambda now supports Java 17](https://aws.amazon.com/blogs/compute/java-17-runtime-now-available-on-aws-lambda/). I've left it here because others might find it's approach useful for other experimentation.
- Upload to S3 (required to create a layer from a ZIP file greater than 50MB in size)
11
+
- In Lambda console, create a layer using this ZIP file using the `x86_64` architecture and the `Custom runtime on Amazon Linux 2` runtime
12
+
- In Lambda console, create a function with `Provide your own bootstrap on Amazon Linux 2` and architecture `x86_64`
13
+
- In Lambda function console, add the layer you created, and upload your [Java deployment package](https://docs.aws.amazon.com/lambda/latest/dg/java-package.html)
A custom JRE is created to reduce final file size. Lambda has a 250MB unzipped file size limit.
46
53
47
54
[Dockerfile](Dockerfile) describes how the JRE is built.
48
55
56
+
## Known Issues
57
+
58
+
1. The layer fails [CDS](https://docs.oracle.com/javase/8/docs/technotes/guides/vm/class-data-sharing.html) (Class Data Sharing) during initialization. This creates some log traffic, and may adversely affect performance.
0 commit comments