Skip to content

Sample Spring Boot, Java 17 Handler for AWS Lambda

Notifications You must be signed in to change notification settings

longluong-awin/sb-j17

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple AWS Lambda Handler written in Java 17 using Spring Boot Framework

When activivated by the Lambda function. It will reverse the given string.

Build

Generate the Spring Boot Framework skeleton code

https://start.spring.io/

mvn clean package

This will out put the file: target/sb-j17-0.0.1-SNAPSHOT-aws.jar

Create a Java 17 Lambda function and upload this JAR file, then set the Handler to org.springframework.cloud.function.adapter.aws.FunctionInvoker::handleRequest in the Runtime Settings section.

Test

Specify a string in the Event Json section of the Test tab of the lambda function, and press Test.

You should see the given string reversed.

About

Sample Spring Boot, Java 17 Handler for AWS Lambda

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages