Deploy a SpringBoot API on AWS Lambda in 10 minutes

preview_player
Показать описание
SpringBoot is the most widely used application framework in Java, but did you know you can run your SpringBoot applications on AWS Lambda in as little as 10 minutes without changing a single line of code.

In this video we dive into taking an existing Spring API and deploying that to AWS Lambda in 10 minutes using the AWS Serverless Application Model.

00:00 - Introduction
00:35 - The Deployed API
01:40 - The Serverless Java Container
02:10 - Add a Lambda Handler
05:00 - AWS SAM Templates
07:20 - Compile your application
08:00 - SAM Deploy
10:00 - API in Action

Links

Рекомендации по теме
Комментарии
Автор

Excelent video. Thank you very much. For those who use free tier, some tips for no cost.
1 - for ddbb (DatabaseStack), change machine and use: InstanceClass.T4G, InstanceSize.MICRO
2 - dont use NAT gateway (NetworkingStack)
3 - Dont use awsSecret. Instead, use user/password directly (only for testing purpose)

nebur
Автор

Please be care with sources for this video. It set up with xlarge2 database, which consumed from me $200 in several days without any usage!

Likrant
Автор

Wonderful video. Would you mind to explain how we can deploy it as native with GraalVM, PLEASE? 🥺

mikhailurmich
Автор

how to use Springboot features like Spring JPA rathar than Spring rest controller for say S3Events. I'm not able to combain these.

MohaideenA
Автор

pleaase do more videos about spring boot serverless architecture, dto to entity mapping etc ..thank

AlessiaCaraFans
Автор

Good video but I feel it lacks few explanations, for example, all pom.xml dependencies used, postgres configuration and its integration with lambda etc.

ktcoder
Автор

Thank you for wrapping up everything in such a short time and just show what is needed! Awesome!! 🙂

VishwasSaxena
Автор

great video thanks, just so I understand, when the lambda is invoked is it starting up the spring boot application every time? seems like that would be pretty slow, so I hope not.

WoodyPianoShack
Автор

Excellent vid. Do you know if there is a way to configure your AWS lambda account, to tell Amazon a max dollar amount you want to spend, and then if you accidentally exceed that amount with your resources, they either immediately notify you, or just simply shut down your site? I'd prefer it works that way.

I'd hate to get a big surprise bill from amazon, because I didn't know my code was very inefficient, and the code was spending too much time during a function invocation.

coderlicious
Автор

Hi James! I've really appreciated your videos for learning about AWS Lambda. I've got an application on SpringBoot 3 that follows the aws-serverless-container, but for whatever reason the Lambda function keeps returning blank response body and headers. When I set it up to run locally (without AWS Lambda function), everything works perfectly. Could you please help me troubleshoot?

Diego-oefy
Автор

Can CodePipeline, Codecommit auto deploy(CICD) springboot to AWS Lambda ?

blockchain_bull
Автор

whats spins up springboot app ? is it main method of @Springbboot app or the one inside handler?

ashishtrivedi
Автор

Im assuming you have lamba apigw proxy set up which requires very particular set up as response like status code, body, 64endcoding.
Do you have send it back as httprespond type from springboot?

mdlwlmdddwd
Автор

thanks for this video, pretty clear n useful. new sub :)

sergiogv
Автор

Could you please give a way to deploy it through aws console as my organisation hasn't given me permission to use sam.

muneshwarsingh