AWS Lambda and API Gateway Example (Part 2)

In Part 2, we walkthrough the process of creating an API endpoint via API Gateway. Navigate to the API Gateway in the AWS Console and hit Create API. Name the API and continue.

On the Resources screen, create a GET method via Create Method under the Actions menu.

Choose Use Lambda Proxy integration, select the region that our Lambda function belongs in, enter the name of our Lambda function, and then hit Save.

create_method

Almost there! At this point, we can test out the endpoint via the test link on the left.

test_endpoint

The last step is to deploy the endpoint. We can do this by going to Deploy API under Actions. Create and name the stage (prod) and then hit Deploy.

deploy_api

Take note of the URL - our endpoint is now live!

Published 23 Dec 2017

Simon So
Principal @ Slalom Build