API Gateway is a powerful AWS service that allows you to host a REST endpoint that is backed by an AWS service (in this case, Lambda). In this video, I show you how to create a REST Endpoint using API Gateway. Requests are served by a Lambda Function (as opposed to a traditional server). I start by creating a Lambda function and coding up a basic handler using Python (code below). From there, I create a API Gateway resource that acts as a publicly facing REST Endpoint. I continue to hook up the endpoint to the previously created Lambda function. Finally, I test the configuration by invoking the REST endpoint through my browser and verify my Lambda was serving the content back.
00:16 Example Overview
01:35 Create a Lambda Function
06:55 Create an API Gateway
08:00 Connect API Gateway to Lambda