File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1
1
# lambda-java17-layer
2
2
AWS Lambda layer to enable Java 17 support
3
+
4
+ ## Usage
5
+
6
+ - Create a function using the PROVIDED_AL2 runtime.
7
+ - Add this layer to your function.
8
+
9
+ ## Java 17
10
+
11
+ A custom JRE is created to reduce final file size. Lambda has a 250MB unzipped file size limit.
12
+
13
+ [ Dockerfile] ( Dockerfile ) describes how the JRE is built
14
+
15
+ ## JVM Settings
16
+
17
+ The following JVM settings are added by default.
18
+
19
+ ```
20
+ --add-opens java.base/java.util=ALL-UNNAMED
21
+ -XX:+TieredCompilation -XX:TieredStopAtLevel=1
22
+ -Xshare:on
23
+ ```
24
+
25
+ Further suggestions welcomed
26
+
27
+ ## Java Class Path
28
+
29
+ ```
30
+ aws-lambda-java-runtime-interface-client-1.1.0.jar
31
+ aws-lambda-java-core-1.2.1.jar
32
+ aws-lambda-java-serialization-1.0.0.jar
33
+ $LAMBDA_TASK_ROOT
34
+ $LAMBDA_TASK_ROOT/*
35
+ $LAMBDA_TASK_ROOT/lib/*
36
+ ```
You can’t perform that action at this time.
0 commit comments