FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

awslambda-java-examples/micronaut-function-dynamodb at master · GoodforGod/awslambda-java-examples · GitHub

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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


Back | FazBrowse Home | New Git URL