Skip to content

Files

Latest commit

Sep 4, 2023
b74c971 · Sep 4, 2023

History

History

micronaut-function-dynamodb

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Aug 28, 2023
Sep 4, 2023
Sep 4, 2023
Aug 28, 2023
Sep 4, 2023
Sep 4, 2023
Aug 28, 2023

README.md

Micronaut AWSLambda DynamoDB

Micronaut function lambda for DynamoDB.

Build

Building Micronaut AWSLambda native executable is quite easy and require 3 steps only:

  1. Build JAR:
./gradlew micronaut-function-dynamodb:shadowJar
  1. Build native executable via Docker:
docker build -t micronaut-function-dynamodb .
  1. Extract native executable from container:
docker run --rm --entrypoint cat micronaut-function-dynamodb /home/application/function.zip > build/function.zip

SAM

You can run AWS emulator (SAM) locally to emulate and test deployment like it is AWS Lambda Cloud.

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

Event Example

Example of event to send to lambda:

{
  "name": "Steeven King"
}

More