Skip to content

Latest commit

History

History
39 lines (26 loc) 路 761 Bytes

File metadata and controls

39 lines (26 loc) 路 761 Bytes

Simple AWSLambda HTTP

Java 17+ AWS Lambda example with Micronaut DI support with GraalVM native compatibility.

Runtime

Example uses Simple Lambda with GraalVM native compatibility.

Deploy

If you are on Windows and having issues with

Error: fork/exec /var/task/bootstrap: no such file or directory

Check bootstrap file that it have LF line (Unix one) separator.

Build

docker build -t simplelambda-http .
docker run --rm --entrypoint cat simplelambda-http /home/application/function.zip > build/function.zip

SAM

sam local start-api -t sam.yaml -p 3000

Event Example

Example of event to send to lambda:

{
  "name": "Steeven King"
}