Your First AWS Lambda Function In VS Code - 10 Minute Tutorial - For Beginners

preview_player
Показать описание
❗️ In this video, we will develop and deploy a Lambda Function LOCALLY in VS Code using the AWS Toolkit Extension.

🧠 Developing locally speeds up the development cycle drastically.

If you’ve tried to make a Lambda Function for more than 5 minutes you’ve run into the problem of how to actually develop and debug it. You probably tried to use the IDE in the AWS console, but quickly realized there are some drawbacks.

The good news is that thanks to the AWS toolkit extension it’s actually really easy to develop Lambda functions in VS code then deploy them.

---

TIMESTAMPS:
0:00​ Intro
0:10 How I Use Lambda
0:25 The Problem
1:21 Download AWS Toolkit
2:43 Create Lambda Function
4:32 Test
5:20 Deploy To AWS
7:09 Test In AWS
9:05 Conclusion

---

WHO AM I: I'm Dylan, a Cloud Engineer living in Oregon. I use my background in tech to make videos about technology that enables and grows businesses.

---

🌍 My website / blog -
Рекомендации по теме
Комментарии
Автор

Okay so if anyone else had trouble with the sam deploy --guided, there's a big rabbit hole there . First off, you need to download the SAM CLI, which allows you to use SAM. Straightforward download. Then afterwards, you'll need to have IAM roles configured for the SAM deploy to work. You'll need to have the AWS CLI installed. Also another straightforward download. Then you need to create an IAM role on (Good explanations online). And then finally, you can use the AWS CLI to configure the IAM role you created. Which will then grant the permissions necessary for sam to deploy the application.

Chroncles
Автор

Great video! I love the bar at the bottom that shows how much progression is made per concept. Really really useful for following along I wish other tutorials did that!

TAREEBITHETERRIBLE
Автор

Great content, Dylan! Thank you very much! And just a quick tip, I recommend a lower volume for the music.. it can be a distraction sometimes

redballoon
Автор

Great !!! 🙃
I learned Lamda functions within 10 minutes.

codingmallu
Автор

great channel! Love the clarity and common sense with which you explain things and make it accessible to both a newbie and a professional. There is just enough details for both, a newbie can research any problematic areas based on your prompts, such as about docker (I paused and went out to learn more) without making this video too long and covering too broad a range of things.

OkiemTaty
Автор

Dylan, thank you very much for this. Concise, and super helpful. The only issue I have is is that there is no "Import" option for me when I right-click on a Lambda fucntion.

geoffreyofmonmouth
Автор

Thanks for the great tutorial, Dylan. This really sped up the configuration process for me. Subscribed!

corygarms
Автор

Wow, great tutorial. I am surprised I was able to get this working first try for something with so many moving parts

ancientelevator
Автор

One other thing worth noting ... had to change the user name configured in the ~/.aws/credentials file from what I'd set up to [default]. After the local build it did show up in AWS and the API tested successfully. So thanks a heck of a lot.

powderriverfarrier
Автор

awesome. Thanks for putting this quick. You are quick to the point 👏👏👏

anishgeorge
Автор

Dylan, I am confused why you would gloss over a key REQ with Docker and not include that in your video. Also I came to full stop after executing your first command as I needed SAM CLI which you also did not mentioned. Thanks

gotstutube
Автор

I really surprised dude unbelievable techy tricks 100%.

alien-web
Автор

you could switch to a smaller resolution before capturing so that it would be readable on a phone while playing

NKomarov
Автор

Excellent video. Thanks a lot for sharing.
Something a bit off-topic, I'm missing the 'Import' option when right clicking on already created lambda functions, also verified that same happens if I create a lambda following your instructions.

Once again thanks.

panayiotismenelaou
Автор

Much appreciated, this is very helpful. But it seems like it spawns a big octopus. I'd love to know if there's a minimalist way of connecting VSCode to Lambda just so we can code our functions, and get out of that console IDE in the browser.

thelonious-dxvi
Автор

Had to add the launch via npm within VSCode then reran and did get the expected message ... in case this is of any help to you.

powderriverfarrier
Автор

great video... how can i debug integrated lambda function, like working with gateway and dynamodb... do i have to create a copy of whole system locally?

mpty
Автор

"The 🐳with the cargo 📦s rockin' and rolling" 😂

DevOpsDirective
Автор

Thanks for the video. On F5, I get "Cannot read property 'routeKey' of undefined" :(

julienjacquet
Автор

Have you figured out the thing at 4:50 where it stops at line 10 at const RAPIDClient = require("./RAPIDClient.js"); ?
I'm getting the same thing constantly hahah

Great video btw!

maxmajki