A build process for GraalVM native images that can be deployed on AWS Lambda as Docker container images
Use zio-lambda to write your own Lambda function based on Scala and ZIO
- Checkout the example project for inspiration
- Make sure you enable the
GraalVMNativeImagePlugin
like the example project does and configure it with the appropriate flags to build the native image - You may most likely need to add some reflect configuration and this post from Inner Product shows a good way to include the configuration in the project so Graal native-image will find it
If you have graal native already installed with the correct libraries in place for linking then great, otherwise use one of the following Docker images tagged with graalvm
**NOTE