How To Test your AWS Lambda Locally with SAM

preview_player
Показать описание
AWS Lambda functions are extremely powerful FaaS components. In this video, I teach you how to use Serverless Application Model (SAM) cli to test your functions on your local machine before pushing your code changes.

🎉SUPPORT BE A BETTER DEV🎉

📚 MY RECOMMENDED READING LIST FOR SOFTWARE DEVELOPERS📚

🎙 MY RECORDING EQUIPMENT 🎙

💻 MY DESKTOP EQUIPMENT 💻

🌎 Find me here:

#AWS
#SAM
#Lambda
#LambdaTesting
Рекомендации по теме
Комментарии
Автор

Looking to become an expert on AWS Lambda? Check out my new course: AWS Lambda - A Practical Guide

BeABetterDev
Автор

how simple! it means youve made a great tutorial!

but one question tho, do you configure the AWS secret id or else in you local??

rulisastra
Автор

Now that we have a CDK, is it possible to test our AWS Lambda locally with the CDK? Can you please do a video on that (assuming that is possible).

JKhalaf
Автор

Hi, can this tool be used to test a Lambda defined as a container image?

MayAlexanderVillamilLozano
Автор

Hm, why use SAM to do this instead of using a more traditional tool for unit testing like Jest?

adamzerner
Автор

Thank you for sharing this knowledge!
It helped me to create my first Lambda Function and test without have any AWS account.

cezaraugustomezzalira
Автор

Great video... please can you make a video on how we can re-used lambda function via terraform from visual studio? 🙏

tiagoaicapital
Автор

what happens if my API Gateway set up contradicts the YAML - If my Gateway already has [GET, /help to call a specific Lambda], will deploying this override the existing options?

GLu-tbpb
Автор

That was so quick, enough, clear, and perfect to learn from !!
Just amazing man thanks a lot.
Do you know that I've been looking for this explanation 3 years ago for several months and nothing found related !!
You save my life now, I would like to save this video as reference
BIG LIKE!

MohamadOmar-oiur
Автор

hi, how can I invoke local lambda from the local api gateway ?

ashay
Автор

What if the lambda relies on a dynamo db table? Doesnt work in this case unless something else is configured and its unclear

ArbitraryZer
Автор

sam local invoke error:failed to deserialize response from. help ❤❤❤

二一-gp
Автор

It would be nice to make a video that includes token authorization to access the endpoint

fb-guer
Автор

Great video mate! I would love a python version too. You are a great source of knowledge for me.

MarcosVSilva-cjyf
Автор

Great Video!!
Is there a Python version too?

TheOmegaX
Автор

It will be great if you can provide a video using Python.

sudhansusahoo
Автор

Thanks for posting this. Do you have any thoughts on how to perform local testing with a SAM template that relies on other AWS services, i.e. mocking say S3 or SQS or some other service locally. Also, how would this testing work with a nested SAM stack? I've struggled with both these examples hence the questions :)

alanwill
Автор

I've been trying to set up for ages now - on a mac arm64 which I think causes issues. Everything else works fine aws cli, aws sam cli, my docker works fine with other applications but i get not able to create docker image. I've tried all solutions re modifying the architecture in the local debug config. Is driving me nuts!

leftg
Автор

Is possible download lambda function aws tha was create node js 8.0 and run locally with SAM? thaks

mauriciopareja
Автор

How is this working without using 'sam build' before using 'sam invoke'?

mroobert