If you want to deploy to AWS Lambda as a GraalVM native image, run:
./gradlew buildNativeLambda -Pmicronaut.runtime=lambda
This will build the GraalVM native image inside a docker container and generate the function.zip
ready for the deployment.
Handler: io.micronaut.function.aws.proxy.MicronautLambdaHandler