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: https://youtu.be/3Ar1ABlD_Vs). 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: https://academy.zerotomastery.io/a/aff_n20ghyn4/external?affcode=441520_lm7gzk-d
– AWS Certified Solutions Architect Associate: https://academy.zerotomastery.io/a/aff_464yrtnn/external?affcode=441520_lm7gzk-d
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