Skip to content

maschnetwork/aws-lambda-spring-boot-3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot 3 on AWS Lambda example

The following repository contains an example of a Spring Boot 3 application that is running on AWS Lambda (Java 17). It leverages the new version of the Serverless Java Container library for compatibility between API Gateway events and Spring Boot 3. For additional information please see this hands on workshop.

Prerequisites

How to build, deploy & test the application

Ensure you are using Java 17 and build the application:

mvn clean package -f unicorn-store-spring/pom.xml
cp unicorn-store-spring/target/spring-boot-lambda.jar infrastructure/cdk/app

If you haven't used AWS CDK on your AWS account before run:

cdk bootstrap

Deploy the application via AWS CDK use:

./deploy.sh

After successful deployment you can use the following script to test the application:

./test-app.sh

Result

results

logs

About

Spring Boot 3 on AWS Lambda with SnapStart

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published