From the course: AWS: Networking

Unlock this course with a free trial

Join today to access over 25,900 courses taught by industry experts.

Configure API Gateway

Configure API Gateway

- [Instructor] Now that we understand what API gateway is, let's get into the AWS console and build one from scratch. Here I am logged into the AWS console. The first thing I want to do is make sure I have an API that I want to front with API gateway. I went ahead and wrote a simple API in Python that given a stock ticker will return its current price. Given its simplicity, I chose to deploy it in Lambda. Let's take a quick peak at that function now. Looking at the contents of this function, we can see that online 13, it retrieves the ticker parameter from query string parameters that are passed in to this event. A copy of this code is available in the exercise files. With that function in place, I'm going to go ahead and create an API gateway. Navigating back to the AWS management console, I go ahead and search for API gateway. Finding the API gateway service, I click on the link and am brought to the homepage for API…

Contents