Developing AWS Lambda Functions Locally in VS Code

preview_player
Показать описание
n this video, I want to share the approach I use regularly to develop AWS Lambda functions (and other serverless projects) locally in VS Code using the benefits of AWS's secret sauce, SAM.

AWS SAM, or Serverless Application Model, is a framework that makes managing your serverless AWS service easy. Using the CLI was can create Lambda functions locally, test them, update them, and deploy them, all from our favorite code editor (mine being VS Code).

In this video, we'll create a simple AWS Lambda function locally and I'll show you how to manage it all from your local dev environment.

Video Mentions:

**** Get ONE FREE Month on Skillshare. Learn Anything (preferably code 😁) ****

**** I write regularly ****

**** Learn to Code Blueprint 6 Month ****

**** FREE EBOOKS ****

LET'S CONNECT!

#developawslambdafunctions #awssam #serverless #awslambda

** Some of the links in this description are affiliate links that I may get a little cut of. Thank you.
Рекомендации по теме
Комментарии
Автор

Awesome instructional video. This way of working helps cut out so much nonsense when it comes to working with lambdas!

sod
Автор

Oh my god thank you so much for that MFA script. You are a life saver.

chrismacswan
Автор

Travis, you are just awesome. I had the issue with importing different python dependencies, mainly snowflake and sql alchemy, I tried a lot with layers and didn't want to shift to linux. I watched this video 3 days ago. But I was stuck in installing Docker, SAM CLI, and also I had Federated AWS Account. I fixed everything and came back to this video. You have saved me. Great tutorial and complete explanation. Thank you so much for this great content..

asifrasool
Автор

Hey Travis, best sam tutorial I've came across. deserves the sub

veganlife
Автор

thank you! I was dreading a new uphill battle, but you turned learning SAM into a water slide :D

Usernamesareoutdated
Автор

Great man! Thank you so much!
You are a great instructor.

raghavgautam
Автор

Now this is just amazing. I'll use AWS SAM a lot now, thanks!

Only thing missing from this tutorial I think would be a small intro on managing Lambda Layers with AWS SAM too.

viniciushenrique
Автор

It was really helpful, please release more such videos. Thank You.

adityatulsyan
Автор

Very well explained. Easy to understand and grasp.

shantisagargebise
Автор

Great! It is very clear explanation and very helpful!

rugeneus
Автор

Thanks Travis for your great tutorial😃

szemeibon
Автор

19:02 and 19:58

You probably know now, but, for the people seeing that now, the AWS SAM CLI, have the command "delete" that delete all resources in the stack that you created.

example:

"$ sam delete <name-stack>"

ramonpaolomaran
Автор

Cheers, this is by far the best available explanation of this. But I really wish there was a more straightforward means of escape from the horrorshow browser IDE -- i.e. without SAM, CloudFormation, etc. I guess there's manually building and pushing zip files, but that's no bed of roses either. I seem to keep landing back in the console IDE when I just need to get something done with Lambda.

thelonious-dxvi
Автор

Hi Travis, thanks a lot. Great tutorial. I have a question if you don't mind: how can I import dependencies in the local environment? Right now I use Layers, but they seem to not be imported locally. Thanks a lot!

fabiofusco
Автор

Thanks Travis, Great Video! BTW - To delete the stack is: sam delete sam-app
This was probably added post your video.

kofio
Автор

That's a neat and modern workflow! Wondering how debugging would work though.

Cool thing about a fully functional approach is that it isolates dependencies and work with arguments, which generally make debugging easier. But I have no experience of working with this in a big environment.

Looking forward to commit to use in in a bigger project.

waldojams
Автор

Great tutorial. I am wondering what if you want to export existing lambda function and debug it locally in vscode. Would love to see that. Keep up the good work 👍

bordsUK
Автор

Great video it helps a ton.
one question: if I want to do that with some Python libraries, where should I install those libraries, locally in the same folder (in your example "aws-sam")? something like pip install "library name" -t . ?

aviahh
Автор

thanks for video but i have question, can be use boto3 in sam app

mohammedbanabila
Автор

Great tutorial! You were super clear and informative.

Question for you: how do you get your terminal command line to bring up the past commands you've entered? That seems super useful. I searched but can't find how to enable it.

RandyL