No video

Adding Serverless Webpack to your Project - fix Lambda Upload Limits

  Рет қаралды 16,994

Complete Coding - Master AWS Serverless

Complete Coding - Master AWS Serverless

Күн бұрын

When you deploy a serverless project, by default it uploads all of the code into every lambda. This can mean you quickly end up hitting the "Unzipped size must be smaller than 262144000 bytes" error.
With Serverless Webpack it compiles all the code that the Lambda needs into a single file, excluding any unused code. This makes it much smaller, reducing the unzipped errors.

Пікірлер: 52
@alexgochenour8740
@alexgochenour8740 4 жыл бұрын
Good lord this is better than a lot of paid content I've seen. Well thought out and easy to follow. Thank you!
@CompleteCoding
@CompleteCoding 4 жыл бұрын
Wow, thanks! That means a lot
@shumit
@shumit 2 жыл бұрын
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.
@mykhaylogusak2321
@mykhaylogusak2321 4 жыл бұрын
Thank you! I appreciate your willingness to share your knowledge on the subject.
@CompleteCoding
@CompleteCoding 4 жыл бұрын
I learnt how to code from people on the internet. I'm glad I can do the same for others out there
@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.
@PeteWhelan
@PeteWhelan 4 жыл бұрын
Thanks Sam great stuff - filling in the missing hole from the earlier tutorial!
@CompleteCoding
@CompleteCoding 4 жыл бұрын
I'd had it all on my laptop for months just needed editing and publishing. Thanks for the reminder
@milenakowalska8360
@milenakowalska8360 3 жыл бұрын
Finally I found a good source to learn serverless framework! Thank you!
@CompleteCoding
@CompleteCoding 3 жыл бұрын
Great to hear!
@robindexx
@robindexx 3 жыл бұрын
Thanks man, Great work!
@CompleteCoding
@CompleteCoding 3 жыл бұрын
Glad you liked it!
@victorfazer4670
@victorfazer4670 2 жыл бұрын
Man. Thats really great video. Thanks a lot!
@CompleteCoding
@CompleteCoding Жыл бұрын
Glad you liked it!
@amitdey789
@amitdey789 4 жыл бұрын
great work buddy, keep it up
@CompleteCoding
@CompleteCoding 4 жыл бұрын
Thanks, a new video coming out tomorrow
@Noname-wp6zt
@Noname-wp6zt 4 жыл бұрын
Great tutorials!
@CompleteCoding
@CompleteCoding 4 жыл бұрын
Thanks. It means a lot
@rajatmasih3706
@rajatmasih3706 3 жыл бұрын
You are amazing man 👍
@CompleteCoding
@CompleteCoding 3 жыл бұрын
Thanks for the support
@neosarchizo
@neosarchizo 4 жыл бұрын
Thanks!!
@CompleteCoding
@CompleteCoding 4 жыл бұрын
My pleasure
@lfellidev
@lfellidev 2 жыл бұрын
Thank you!
@CompleteCoding
@CompleteCoding 2 жыл бұрын
My pleasure, glad it helps
@nickl2681
@nickl2681 2 жыл бұрын
Excellent - thanks
@CompleteCoding
@CompleteCoding 2 жыл бұрын
My pleasure
@mytesttestovich6009
@mytesttestovich6009 2 жыл бұрын
thank you, sir!
@CompleteCoding
@CompleteCoding 2 жыл бұрын
You are welcome!
@mohitsoni8951
@mohitsoni8951 Жыл бұрын
How to use slsw.lib.entries in entry key in webpack config ?
@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 :)
@CompleteCoding
@CompleteCoding 3 жыл бұрын
Welcome 😊
@CVenture
@CVenture 3 жыл бұрын
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 3 жыл бұрын
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.
@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 kzfaq.info/get/bejne/b9WYfpp0xtbReac.html
@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
@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.
Create a Serverless Database - DynamoDB with the Serverless Framework
9:59
Complete Coding - Master AWS Serverless
Рет қаралды 18 М.
How to Proxy API requests to your legacy endpoints with Serverless
10:08
Complete Coding - Master AWS Serverless
Рет қаралды 3,7 М.
ОБЯЗАТЕЛЬНО СОВЕРШАЙТЕ ДОБРО!❤❤❤
00:45
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 8 МЛН
哈莉奎因以为小丑不爱她了#joker #cosplay #Harriet Quinn
00:22
佐助与鸣人
Рет қаралды 9 МЛН
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Рет қаралды 331 М.
How to bundle a nodejs lambda function? (using esbuild)
8:35
BiteSize Academy
Рет қаралды 4 М.
Creating an API with Serverless - API Gateway and AWS Lambda
14:23
Complete Coding - Master AWS Serverless
Рет қаралды 30 М.
Using docker in unusual ways
12:58
Dreams of Code
Рет қаралды 430 М.
The Story of Next.js
12:13
uidotdev
Рет қаралды 560 М.
Improving Lambda cold starts with AJ Stuyvenberg
53:27
Yan Cui
Рет қаралды 1,5 М.
Securing Your Serverless API With API Keys
14:21
Complete Coding - Master AWS Serverless
Рет қаралды 10 М.
Netlify Serverless Functions with Netlify Dev
12:17
James Q Quick
Рет қаралды 29 М.
ОБЯЗАТЕЛЬНО СОВЕРШАЙТЕ ДОБРО!❤❤❤
00:45