If you want to deploy to AWS Lambda as a GraalVM native image, run:
./mvnw package -Dpackaging=docker-native -Dmicronaut.runtime=lambda -PgraalvmThis will build the GraalVM native image inside a docker container and generate the function.zip ready for the deployment.
Handler: example.micronaut.FunctionRequestHandler