Create a REST API with API Gateway and Lambda | AWS Cloud Computing Tutorials for Beginners
HTML-код
- Опубликовано: 26 июн 2024
- The world runs on APIs (application programming interfaces) these days, and it’s likely that you’ll need to build APIs for your own application, or for others to consume.
In AWS, it’s common to create Lambda functions to do a very specific task (more in this video if you’re interested: • Create Your First AWS ... ). But those Lambda functions aren’t going to be exposed to the outside world. Instead, you’d want the requests to go to an API endpoint, which will then call Lambda. And API Gateway is what allows you to do that.
In this hands-on tutorial, we’ll build a simple “hello world” Lambda function, and then create an API Gateway GET method that calls it. And be sure to stick around to the end where I’ll show you how to delete the resources.
🌟🌟If you’re interested in getting AWS certifications, check out these full courses. They include lots of hands-on demos, quizzes and full practice exams. Use FRIENDS10 for a 10% discount!
- AWS Certified Cloud Practitioner: academy.zerotomastery.io/a/af...
- AWS Certified Solutions Architect Associate: academy.zerotomastery.io/a/af...
00:00 - Creating a Hello World Lambda function so we can call it from API Gateway
00:57 - Creating a new REST API in API Gateway
01:52 - Creating a GET method in API Gateway to call our Lambda function
02:46 - Testing the API Gateway GET method
03:09 - Deploying our API in API Gateway
03:36 - Invoking the API Gateway URL to call our Lambda function
03:58 - IMPORTANT! Delete your Lambda function and API Наука
Exactly what I needed. Concise and to the point information. This 4 and a half minute video is fully loaded with exact information that developer needs for API Gateway and Lambda Function Integration. Thank you.
Glad it was helpful! Thanks for watching, and for the nice comment! 🤓🙏🌟
This is the best tutorial I've found, no fluff, just the basics to help get me started. Thank you so much!
Such a wonderful compliment!! Thanks so much, Ammon! 🙏🌟🤓
Exactly what I need, always hands-on tutorial. Thanks again!
I'm so glad it helped! Thanks for supporting the channel!! 🥰
Amazing tutorial! I have to watch this a few times to soak it all in but this is best tutorial I've seen so far to demo REST API in action and Lambda. Once again thank you so much for making things make sense with visuals!!! You're the best👌Be well, be safe and Cheers!!!
Thank YOU!!! As always! :)
@1:14 thanks for showing "The Other Direction" for creating an AWS API Gateway trigger for an AWS Lambda function.
The normal direction most of us are familiar with is via the "Create Trigger" on the Lambda console -- then you choose API Gateway and it will automatically create the "/ANY/" method for you as a convenient API (aka all the methods, not just GET or POST etc.), and as a proxy for Lambda (aka it handles all sorts of property name mapping in the Request and the Response for you, can be confusing when you look at the index.handler "event" arg that is passed, but your way lets you have full control... pros and cons to that of course!
Full control...muahahaha! 😈 Thanks for the detailed comment...you clearly "get" it! 🤓
Easy delivery of helpful information, I liked your calm & soft voice, intonation, speed. Please keep me happy with your new videos!
Thanks for the nice comment, @pulodian! 😊 More videos on the way...stay tuned!
As usual amazing content!!!
Thank you so much! :)
This is very helpful, thanks for putting these together.
Simple and Perfect explanation..Thanks alot
So nice of you!! Thanks so much for watching!! 🙏🤓🌟
Speechless. just what we needed...👌
I'm so glad it helped! Thanks for watching! 🙏🤓🌟
great video! as always
Thank you! Cheers! 🔥🥰🙏
Great post, made my first API!
Awesome!!! CONGRATS! 🙌🎉💪
Very straight forward.... Nice video ma'am
Oh wonderful! I'm so glad it helped. Thanks for watching! 🙏🌟🤓
Awesome explanation ............ I was always strugging to get the hands on b/w API Gateway and Lambda.
Keep up ur good work ........ Love frm India.
God bless you .........
Thanks so much, Zameer! Glad it helped! 😊
Hi Jyoti! No, AWS automatically reserves them. You don't need to specifically do anything with them (just know that they're not available for you to use). 😊
thanks for the tiny technical tutorial
Thank YOU for watching! 🙏🤓🌟
thanks mam for your teaching and guidance.
I'm so glad it helped!! Thanks for watching, and for the nice comment! 🤓🙏🌟
Awesome 👍
Thank you, baptista21! Cheers! :)
Thanks!
Oh wow, thanks so much for the donation, @bayardwoodworth7993!!! 🥰 Really appreciate you supporting the channel!
I would love to see another video on this but when using a Private REST API. I’m wrestling with DNS resolution with one right now and I’m sure with a clear walkthrough from you I’d be able to sort it out 😂
Hey @AdrianKeith! 👋 Thanks for the suggestion! I'll add this to my list. In the meantime, maybe something here will be helpful? repost.aws/knowledge-center/api-gateway-private-endpoint-connection
Than you !
Thank YOU for watching!! 🙏🤓🌟
Hello! I come from Código Morsa, new subscriber !
Welcome to the channel, Andrik! Great to have you! :)
This is beautiful. You're beautiful. Loved it.
Awwww...you're very kind!!! Thanks for watching, and for the nice comment! 🤓🙏🌟
I had a question, my homework was to create API Gateway, is this video did this?
Hi Mark! 👋 With this video, you create an API endpoint that uses a Lambda on the backend.
send me a link of ur udemy courses please :)
Awwww...thanks so much! 🔥🥰🙏 I've got the AWS Cloud Practitioner course on Udemy here: www.udemy.com/course/aws-certified-cloud-practitioner-master-aws-fundamentals/. Enjoy!
If I keep getting error "message": "Missing Authentication Token"