The Java Lambda runtime supports following architectures:
| Name |
Identifier |
Architecture |
| Java 11 |
java11 |
x86_64, arm64 |
| Java 8 |
java8.a12 |
x86_64, arm64 |
| Java 8 |
java8 |
x86_64 |
So you would only have to package either x86_64 or the arm64 libs.
Lambda functions that use arm64 architecture (AWS Graviton2 processor) can achieve significantly better price and performance than the equivalent function running on x86_64 architecture. Consider using arm64 for compute-intensive applications such as high-performance computing, video encoding, and simulation workloads. Source
Depending on which architecture you want to use, you only have to package the libs for that architecture. You can deploy your Lambda function either as zip file and configure the architecture used in the Lambda function's settings or create a Lambda function from a container image