Skip to content

ketan-gote/spring-boot-aws-lambda-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Cloud AWS Lambda Demo

Demo focus on Spring Boot AWS Lambda function Demo.

Once Application is build follow below steps to deploy on AWS Lambda

1 - Create AWS Function

Screen Shot 2021-09-16 at 3 23 36 PM

2 - Upload JAR

Screen Shot 2021-09-16 at 3 26 22 PM

3 - Add entry class name (com.demo.AWSLambdaHandler). Note this is class is defined in our Spring Boot project

Screen Shot 2021-09-16 at 3 36 19 PM

4 - Add Trigger, This will be defined in API Gateway to trigger AWS Function

Screen Shot 2021-09-16 at 3 30 53 PM

Screen Shot 2021-09-16 at 3 31 12 PM

Note: Have defined OPEN for demo purpose only never define for PROD.

5 - Above Step will provide a URL in API gateway, which you can use for testing

Screen Shot 2021-09-16 at 3 33 46 PM

6 - Use Below CURL command too test Serverless function

curl -X POST
https://b5hasx7xhj.execute-api.ap-south-1.amazonaws.com/default/spring-boot-aws-lambda
-H 'cache-control: no-cache'
-H 'content-type: text/plain'
-H 'postman-token: d27664ce-8113-2c50-92aa-39486b9ee66d'
-d Test

7 - You can check logs in Cloud Watch Logs.

About

Demo focus on Spring Boot AWS Lambda function Demo.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages