This repository demonstrates how to use Quarkus Funqy for GraalVM based native images in an FaaS environment. Our goal was to have functions with a low memory footprint and extremely fast cold-start times.
mvn package -Pnative -Dquarkus.native.container-build=true
Specify your function in the application.properties
with quarkus.funqy.export=helloWorld
.
The function name is based on the function in the HelloWorldFunction.class
in the case it`s helloWorld
.
You need to add LAMBDA_ROLE_ARN
with your role to your enviroment variables or add it to the manage.sh
file.
mvn package -Pnative -Dquarkus.native.container-build=true
sh target/manage.sh native create
You can use the SAM CLI to test your aws lamda locally.
sam local invoke --template target/sam.jvm.yaml --event payload.json
sam local invoke --template target/sam.native.yaml --event payload.json