Deploy a SpringBoot API on AWS Lambda in 10 minutes

Поделиться
HTML-код
  • Опубликовано: 2 дек 2024

Комментарии • 51

  • @nebur43
    @nebur43 Год назад +9

    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)

    • @serverlessjames
      @serverlessjames  Год назад +3

      I really appreciate the comment, and I've updated the GitHub repo to have the first 2. My preference is to keep the secret in place, purely to demonstrate the best practices. But The DB and Nat Gateways are done :)

  • @VishwasSaxena
    @VishwasSaxena Год назад +1

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

  • @santiagobruno_t1581
    @santiagobruno_t1581 3 месяца назад +2

    thanks for keeping it simple!

  • @MohaideenA
    @MohaideenA 3 месяца назад

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

  • @WoodyPianoShack
    @WoodyPianoShack Год назад

    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.

    • @serverlessjames
      @serverlessjames  Год назад

      Thanks! Whenever a new Lambda execution environment is created then yes Sprint Boot needs to startup up every time. I have another video in the same playlist on Lambda SnapStart which prevents this though, its well worth checking that out as well 😀

  • @YoAndroide
    @YoAndroide 5 месяцев назад +1

    Thanks, great video!!

  • @ashishtrivedi6426
    @ashishtrivedi6426 Год назад

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

  • @mikhailurmich
    @mikhailurmich 2 года назад +5

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

    • @serverlessjames
      @serverlessjames  2 года назад +2

      Hey Mikhail, I certainly will look at doing that in the future. Thanks for reaching out 🎉☺️

  • @EduardoMatoso-bx8if
    @EduardoMatoso-bx8if Год назад

    Thanks!

  • @blockchain_bull
    @blockchain_bull Год назад +1

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

  • @AlessiaCaraFans
    @AlessiaCaraFans Год назад +1

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

  • @ktcoder
    @ktcoder Год назад +2

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

    • @serverlessjames
      @serverlessjames  Год назад

      Great feedback, thanks. I try to keep my videos short and to the point, but these would have been good additions.

  • @mdlwlmdd2dwd30
    @mdlwlmdd2dwd30 Год назад

    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?

    • @serverlessjames
      @serverlessjames  Год назад +1

      There's no manual configuration of the API Gateway. AWS SAM configures all of the API Gateway resources and then the serverless Java container manages the translation from API GW to Spring and back again

  • @Likrant
    @Likrant Год назад +4

    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!

    • @serverlessjames
      @serverlessjames  Год назад +1

      Sorry to hear that, and thanks for pointing it out, I'll update the source code.

    • @Likrant
      @Likrant Год назад

      @@serverlessjames also $30 for NAT Gateway (VPC as I understood)

    • @ksdekamil
      @ksdekamil Год назад +1

      @Likrant Good to know. What a kind of DB it was? I plan to use DynamoDB which is free up to 25 GB so I hope that I will avoid such problems

  • @muneshwarsingh9474
    @muneshwarsingh9474 Год назад

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

    • @serverlessjames
      @serverlessjames  Год назад

      Is there another tool you are allowed to use? Terraform, CDK etc?

    • @muneshwarsingh9474
      @muneshwarsingh9474 Год назад

      @@serverlessjames yes we are allowed to use terraform...but we can't use SAM.
      pls provide some solution..

  • @peace336-n8g
    @peace336-n8g 11 месяцев назад

    Awesome, great video.

  • @Diego-oe7fy
    @Diego-oe7fy Год назад +2

    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?

    • @serverlessjames
      @serverlessjames  Год назад +1

      Do you have a GitHub repository or something you could share?

    • @Diego-oe7fy
      @Diego-oe7fy Год назад

      @@serverlessjames my github repo link seems to have gotten deleted. Is there any other way to send this to you?

    • @serverlessjames
      @serverlessjames  Год назад

      @@Diego-oe7fy feel reach to reach out on social media? Twitter maybe. My username is @plantpowerjames

    • @Diego-oe7fy
      @Diego-oe7fy Год назад +1

      @@serverlessjames alright! I followed you

    • @serverlessjames
      @serverlessjames  Год назад

      @@Diego-oe7fy Great, feel free to drop me a direct message.

  • @coderlicious6565
    @coderlicious6565 Год назад +1

    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.

    • @serverlessjames
      @serverlessjames  Год назад +1

      You can set budgets on your account so that you get notified when your spend goes over a certain level. Link below.
      You can also use things like reserved concurrency in Lambda to control the scaling behaviours. If this is a personal AWS account you're using for learning you can also delete all of your infrastructure when you're not using it. Serverless resources are quick to spin up and tear down, so deleting them when you're not using them removes the risk completely.
      aws.amazon.com/aws-cost-management/aws-budgets/

    • @coderlicious6565
      @coderlicious6565 Год назад +1

      @@serverlessjames Perfect, thanks a mil for your response.

  • @miguelmallqui9472
    @miguelmallqui9472 Год назад +1

    thanks! great video

  • @bik8353
    @bik8353 2 года назад +1

    Thanks fort his video!!

  • @sergiogv5107
    @sergiogv5107 2 года назад +1

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

    • @serverlessjames
      @serverlessjames  2 года назад

      Glad it helped, there will be plenty more coming in this series over the next few weeks. Thanks for subscribing :)

  • @markusfeljofsen8345
    @markusfeljofsen8345 Год назад +1

    Really nice vid thx

  • @juliocesararbietochavez5890
    @juliocesararbietochavez5890 2 года назад +1

    great video 👍

  • @faiz1449
    @faiz1449 Год назад

    Thanks

  • @fit.rathore
    @fit.rathore 8 месяцев назад

    waist of time.

    • @serverlessjames
      @serverlessjames  8 месяцев назад

      Could I ask why?

    • @fit.rathore
      @fit.rathore 8 месяцев назад +1

      @@serverlessjames waist of time for beginners. You didn't explain about some configuration like sam file some dependency and all. How can a beginner figure it out what happened in background. And how dependency is relevant to which part.
      And please this is only feedback not a hate about you.

    • @serverlessjames
      @serverlessjames  8 месяцев назад

      @@fit.rathore It's really great feedback, thank you for taking the time to reply :)