Deploy a SpringBoot 3 API on AWS Lambda in 10 minutes

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.พ. 2025

ความคิดเห็น • 53

  • @woper522
    @woper522 ปีที่แล้ว +1

    Hey James!... I just subscribed, please keep sharing your knowledge in this kind of videos... really concise and easy to understand!.

    • @serverlessjames
      @serverlessjames  ปีที่แล้ว

      It's comments like this that keep me creating content, so thankyou ♥️

  • @agarwalr5205
    @agarwalr5205 หลายเดือนก่อน +1

    Another cool way to have the boiler plate code already in place to use springboot3 Maven Archetype provided by AWS, this already have the basic code in place which is used for AWS Lambda.
    Any ways, awesome and crisp video James :)

    • @serverlessjames
      @serverlessjames  หลายเดือนก่อน

      I'll have a look at that, thankyou :) Appreciate the comment.

  • @lesedi44
    @lesedi44 ปีที่แล้ว +3

    This is exactly the type of content I need right now. I am a little under a month with AWS and the only thing I am struggling with is connecting all the services together. Things like having a EC2 instances in private and public subnets and connecting them together. Also architecture design. I understand your mainly a severless Java channel, so I'll probably have to figure it out some other way if you can't do it.

    • @serverlessjames
      @serverlessjames  ปีที่แล้ว

      Glad to hear it. Yeah, the content is mainly serverless. One reason being you don't need to worry about EC2 instances and subnets.
      Is there any other content you'd like to see that would be helpful to your journey?

  • @JohnBrosan
    @JohnBrosan 8 หลายเดือนก่อน +1

    Hi James, this is exactly what I needed as well. Your tutorial really simplifies everything! Thank you again, and I subbed!

  • @oscar8500
    @oscar8500 ปีที่แล้ว

    I really enjoy your videos! In every video I learn bits and bits that leads me to be better!

  • @rocketbob
    @rocketbob 11 หลายเดือนก่อน

    Hi James thanks for putting this video together. For me the next steps are to learn how to do local debugging using SAM, adding authorizers, and deploying with stages thru pipelines. Looking for more tutorials on how to do these things.

    • @serverlessjames
      @serverlessjames  11 หลายเดือนก่อน

      That's good to hear, I can add this to my backlog.

  • @majid_devops
    @majid_devops 2 หลายเดือนก่อน +1

    Good job, thanks.

  • @manrique.varela
    @manrique.varela ปีที่แล้ว +2

    I liked the unedited parts of the video 😄

    • @serverlessjames
      @serverlessjames  ปีที่แล้ว

      Wait, what? 😂 I'm still a little jet lagged. Where exactly are the unedited parts?

    • @manrique.varela
      @manrique.varela ปีที่แล้ว

      @@serverlessjames I guess you changed the video, I watch a 20 minutes long video

    • @serverlessjames
      @serverlessjames  ปีที่แล้ว

      I trimmed it down, thanks for pointing it out 😀😀

  • @cristianomuniz7
    @cristianomuniz7 ปีที่แล้ว +2

    Please make another one explaining how I could add multiple routes!

    • @serverlessjames
      @serverlessjames  ปีที่แล้ว +1

      Sure, I can do that. But it's as simple as defining Spring routes in the same way you always would with Spring ☺️ any tutorial on the internet talking about Spring would work. I'd highly recommend Dan Vega's Spring tutorial as a starting point.

  • @bikaskumar5904
    @bikaskumar5904 หลายเดือนก่อน

    hey James! how can configure the aws loadbalancer to the lamda with springboot function, could you mind covering this topic.

  • @mumbaimuru
    @mumbaimuru 11 หลายเดือนก่อน +1

    Can you please share your github URL for this demo code?

    • @serverlessjames
      @serverlessjames  11 หลายเดือนก่อน

      That's a good question, I thought I had put it in the description. Give me a few days.

    • @mumbaimuru
      @mumbaimuru 11 หลายเดือนก่อน +1

      @@serverlessjames waiting for you...

    • @irrationalPie
      @irrationalPie 10 หลายเดือนก่อน +1

      @@serverlessjames Still waiting. You should at least show the entire template.yml in the video

  • @Praskand_Upadhyay
    @Praskand_Upadhyay 2 หลายเดือนก่อน

    Could you do a real world example and without command line deployment?

  • @emmanuelU17
    @emmanuelU17 ปีที่แล้ว +1

    Love the content. Can you make a demo video but deploying this app as a GraalVM native image? If possible setting up a pipeline since we would have to use a custom runtime.

    • @serverlessjames
      @serverlessjames  ปีที่แล้ว +1

      Yeah absolutely. GraalVM has been on my list to look into for a little while now anyway 👌☺️

  • @jhcao23
    @jhcao23 10 หลายเดือนก่อน

    will the "serverless-java-container" gracefully handle DB connection (pool) without using AWS RDS Proxy?

  • @HayleighYoung
    @HayleighYoung 11 หลายเดือนก่อน

    Hi James! Thank you for the video, I was curious if you could help me troubleshoot here, I am not getting the outputs to appear but the deployment says it was succesful i just do not know how i am supposed to verify this being the case without seeing the outputs, any advice welcome! Thank you!

    • @serverlessjames
      @serverlessjames  11 หลายเดือนก่อน

      Interesting. Could you send me a link to the code sample you've used to deploy? On social media if that's easier.

  • @buma1306
    @buma1306 ปีที่แล้ว

    Dear James, thx a lot for that video. Very helpful indeed. 👌May I ask for a big favor? 🙏🏼Would it be possible for you to lay out a springboot3 app in lambda with an api gw in front of it which does session handling in redis and maybe stores a simple object in a relational database - something like Postgres - and for the infrastructure as code I would love to see the usage of cdk instead of sam. Do you think that would be possible? Thx a lot in advance. If not in a complete video maybe some guides, hints or further links would also be highly appreciated. Regards, Mario 🎉

    • @serverlessjames
      @serverlessjames  ปีที่แล้ว

      I can definitely add it to my video backlog ☺️ I've got quite a lot lined up now though so it might be a few weeks. It's a great suggestion for a video though.

  • @pavanmadiraju
    @pavanmadiraju ปีที่แล้ว

    Is there code to create the subnets and VPC's, instead of going thro the prompts and creating them? Looking forward to see how you have configured VpcConfig section. Do we need to setup networking outside this example or the SAM prompts create the required networking also?

    • @serverlessjames
      @serverlessjames  ปีที่แล้ว

      So this code doesn't actually interact with any VPC resources, so it isn't covered here. Typically I would recommend creating your network resources separate from your application stack. And then you'd specify the subnets and security group ID as part of your SAM template in the VPCConfig section.

  • @AlexSmirnou
    @AlexSmirnou 9 หลายเดือนก่อน

    Hey James, great tutorial.. is it working only with ApiGw? Can that lambda be invoked based on SQS Message?

    • @serverlessjames
      @serverlessjames  9 หลายเดือนก่อน

      Yes, absolutely. I'm going to revisit Java + Lambda at some point in the near future. Watch this space ☺️

  • @CoolKunal92
    @CoolKunal92 ปีที่แล้ว

    I believe you are using API Gateway infront of your Lambda to recieve the request and proxy the request.
    Is there a way we can implement a handler class which does not use API Gateway?
    I want to invoke my springboot controller method directly from my handler class without proxying the request.

    • @serverlessjames
      @serverlessjames  ปีที่แล้ว

      If you were going to do that you probably wouldn't need Spring boot at all?

    • @CoolKunal92
      @CoolKunal92 ปีที่แล้ว

      @@serverlessjames I would need SpringBoot as I am building a REST API which resides in my lambda function.

    • @serverlessjames
      @serverlessjames  ปีที่แล้ว

      You could use Lambda function URLs as an alternative to API gateway

  • @IdaRosenthal-f3u
    @IdaRosenthal-f3u ปีที่แล้ว

    Hi James, good video! I am hung up on getting the code for the first part of the template.yaml file(First 13 lines). Can you provide the code to the template.yaml file for this video? (Or just the first 13 lines?) Thanks so much!

    • @serverlessjames
      @serverlessjames  ปีที่แล้ว

      If you run a 'sam init' command and go through the quick start wizard, select Java21 and that will give you an example 👍☺️

    • @IdaRosenthal-f3u
      @IdaRosenthal-f3u ปีที่แล้ว

      @@serverlessjames Thank you for that!

  • @SujeetKumar-hh5jz
    @SujeetKumar-hh5jz 10 หลายเดือนก่อน

    hey @serverlessjames Thanks a lot for this tutorial i have implemented a similar this in my company just have a doubt in this , Does this support multipart file also in controller for ex( @RequestPart(value = "zipFile", required = true) MultipartFile zipFile) will this work if i add this controller and call using serverless lambda . Waiting for your reply i am stuck in this for 1 week now .

    • @serverlessjames
      @serverlessjames  10 หลายเดือนก่อน

      That's a great question that I don't actually know the answer to. I think you'd have to make some changes in API Gateway to allow the different content type. But I see no reason why it wouldn't work

    • @SujeetKumar-hh5jz
      @SujeetKumar-hh5jz 10 หลายเดือนก่อน

      @@serverlessjames it worked, I had to add multipart/form-data in api gateway setting media type .

    • @serverlessjames
      @serverlessjames  10 หลายเดือนก่อน

      @@SujeetKumar-hh5jz Thanks for letting me know :)

  • @bitsforbits6581
    @bitsforbits6581 8 หลายเดือนก่อน

    is aws lambda free, asking as a student for self learning

    • @serverlessjames
      @serverlessjames  8 หลายเดือนก่อน

      There is a very generous free tier yes. Throughout all the TH-cam content and demos I've ever created I've never paid a penny for Lambda compute
      "The AWS Lambda free tier includes one million free requests per month and 400,000 GB-seconds of compute time per month," - aws.amazon.com/lambda/pricing/

    • @bitsforbits6581
      @bitsforbits6581 8 หลายเดือนก่อน

      @@serverlessjames thanku so much for clarifying this

  • @RAZR_Channel
    @RAZR_Channel 10 หลายเดือนก่อน

    Shut up with Double Down CTA : it's 2024 and we know what to do... so get to the point and : Earn it...

  • @AwkwardFX
    @AwkwardFX 8 หลายเดือนก่อน

    Why would anyone deploy Spring Boot in AWS Lambda? What's the ideal use case for this?

    • @serverlessjames
      @serverlessjames  8 หลายเดือนก่อน

      Running web applications in a way that scales up and down automatically based on user traffic and you only pay for what you use.

  • @bradenborman4396
    @bradenborman4396 หลายเดือนก่อน

    java.lang.ClassCastException: class org.springframework.context.annotation.AnnotationConfigApplicationContext cannot be cast to class org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext
    I keep getting this error!