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.
- Maven
- Java 17
- AWS CDK CLI
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