Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 1.16 KB

README.md

File metadata and controls

44 lines (27 loc) · 1.16 KB

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