Adding Serverless Webpack to your Project - fix Lambda Upload Limits

แชร์
ฝัง

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

  • @alexgochenour8740
    @alexgochenour8740 4 ปีที่แล้ว +18

    Good lord this is better than a lot of paid content I've seen. Well thought out and easy to follow. Thank you!

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

    These videos (The Serverless Framework with AWS) are ridiculously good !! I must say, you have the BEST VIDEOS on entire youtube covering serverless. Precise and to-the-point (no-nonsense talks), at the right pace (neither fast, nor slow), right duration, focusing on a single topic - FANTASTIC !!! Thank you very much !!! Beginners like us from not-so-advanced countries can learn so much. Once more, THANK YOU !!!

    • @CompleteCoding
      @CompleteCoding  2 ปีที่แล้ว

      Wow I'm super glad that you've liked my videos so much.

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

    Finally I found a good source to learn serverless framework! Thank you!

  • @bradlaloli8422
    @bradlaloli8422 2 ปีที่แล้ว

    Just started with AWS and integrating a 3rd Party Product. Was using the AWS GUI but now thanks to you trying to build my deployments using VSCode & Serverless! Thanks heaps!

    • @CompleteCoding
      @CompleteCoding  2 ปีที่แล้ว

      Awesome job Brad. Its a big step to move from the GUI to real infrastructure as code.

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

    Thank you! I appreciate your willingness to share your knowledge on the subject.

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

      I learnt how to code from people on the internet. I'm glad I can do the same for others out there

  • @PeteWhelan
    @PeteWhelan 4 ปีที่แล้ว

    Thanks Sam great stuff - filling in the missing hole from the earlier tutorial!

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

      I'd had it all on my laptop for months just needed editing and publishing. Thanks for the reminder

  • @victorfazer4670
    @victorfazer4670 2 ปีที่แล้ว

    Man. Thats really great video.
    Thanks a lot!

  • @mikiallen7733
    @mikiallen7733 2 ปีที่แล้ว

    would you kindly add new tutorials in which you can show us some hints as to how shall I add UX then UI elements to these server-less apps ? if my question even makes sense , your input is highly appreciated
    best regards

    • @CompleteCoding
      @CompleteCoding  2 ปีที่แล้ว

      There are lots of tutorials about how to create a frontend application that work with APIs.
      That's not my area of expertise but here are some good ones
      th-cam.com/video/9ohK7CapmIs/w-d-xo.html

  • @robindexx
    @robindexx 3 ปีที่แล้ว

    Thanks man, Great work!

  • @amitdey789
    @amitdey789 4 ปีที่แล้ว

    great work buddy, keep it up

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

      Thanks, a new video coming out tomorrow

  • @rajatmasih3706
    @rajatmasih3706 3 ปีที่แล้ว

    You are amazing man 👍

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

    Thank you!

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

    How to use slsw.lib.entries in entry key in webpack config ?

  • @Noname-wp6zt
    @Noname-wp6zt 4 ปีที่แล้ว

    Great tutorials!

  • @ramyasaminathan4431
    @ramyasaminathan4431 2 ปีที่แล้ว

    Many Thanks for the excellent serverless videos!.
    Im getting run-time error, could not find a json file after the deployment , while executing a API request,The json file is referred in the src file. Pls help me to resolve this

    • @CompleteCoding
      @CompleteCoding  2 ปีที่แล้ว

      Are you requiring the json file inside one of your lambdas?
      If so you'll need to update your webpack config to include handling JSON files.
      Another option is to move to using serverless-esbuild plugin. It seems to be easier to work with than webpack

    • @ramyasaminathan4431
      @ramyasaminathan4431 2 ปีที่แล้ว

      @@CompleteCoding Thanks Sam ..Pls let me explore

  • @nickl2681
    @nickl2681 2 ปีที่แล้ว

    Excellent - thanks

  • @mytesttestovich6009
    @mytesttestovich6009 2 ปีที่แล้ว

    thank you, sir!

  • @CVenture
    @CVenture 4 ปีที่แล้ว

    Hi..Am running into a problem after getting aws-node-typescript template and serverless deploy..Webpack is not excluding the node_modules in packaging. Can you pls help here?

    • @CompleteCoding
      @CompleteCoding  4 ปีที่แล้ว

      You'll need to check a few things in the repo. In serverless.ts make sure you have a plugin of "serverless-webpack" and have installed it, and also that you have these lines in there:
      package: {
      individually: true
      }
      You also need to have a webpack config in the repo. With all of this you should have your lambdas compiled down to a single file when deploying.

  • @shalinipriya4696
    @shalinipriya4696 4 ปีที่แล้ว

    Hi, I am a bit new into aws architecture stuff. Need help. Trying to implement webpack into a large typescript aws Serveless application having several lambdas.npm run build works fine, but when I try to run a lambda locally, I am getting error, JavaScript heap runs out of memory. What can be the reason

    • @CompleteCoding
      @CompleteCoding  4 ปีที่แล้ว

      There is a standard in v8 (node) that only allows a process to use 1.7 GB ram in a single process. You appear to be hitting that limit. You can increase it by using this command
      node --max-old-space-size=512 ./node_modules/bin/serverless offline
      Since you are likely already using 1.7GB of ram, I would also see if there is a way to optimise your code. If you want to really optimise it might be worth looking into the garbage collection in V8 jayconrod.com/posts/55/a-tour-of-v8-garbage-collection

  • @letsgodevs
    @letsgodevs 3 ปีที่แล้ว

    Thank you thank you thank you soooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo mush sir :)

  • @igoralves1
    @igoralves1 2 ปีที่แล้ว

    Webpack or layers?

    • @CompleteCoding
      @CompleteCoding  2 ปีที่แล้ว

      Personally I'm not a massive fan of layers. I would only really resort to them if there is a dependancy that I really need which is too large even when compiled down (headless chrome).

  • @joshuaunderwood1873
    @joshuaunderwood1873 4 ปีที่แล้ว

    Why not make web pack a dev dependency?

    • @CompleteCoding
      @CompleteCoding  4 ปีที่แล้ว

      You really should. It's annoyingly easy to miss a single word when you're making these videos.

    • @joshuaunderwood1873
      @joshuaunderwood1873 4 ปีที่แล้ว

      Complete Coding I understand. Was teaching react native for a bit on my other channel. Just wanted to ensure I wasn’t missing something perhaps you knew that I did not.

  • @neosarchizo
    @neosarchizo 4 ปีที่แล้ว

    Thanks!!