Skip to content

Instantly share code, notes, and snippets.

@jtsaito
Created August 28, 2015 10:36
Show Gist options
  • Save jtsaito/0e67f2c0bb3cbecc591f to your computer and use it in GitHub Desktop.
Save jtsaito/0e67f2c0bb3cbecc591f to your computer and use it in GitHub Desktop.
AWS API Gateway Example

AWS API Gateway allows developers to put a uniform API between your services and clients. A servcie could for instance be your custom app or just an AWS Labmda.

The official walkthrough for making Lambda calls from the AWS Gateway works out of the box. It describes how to make a GET and a POST request and map them to self-defined Lambdas.

When I was testing the walkthrough the example was only slightly outdated as follows. When making stages (something akin to Rails environements for the API Gateway), methods must be registered in a sperate effort as follows.

(1) In the dashboard, select your API. (2) In the drop down next to your API, select Resoruce. (3) Select your resource in the panel, click add method and again select your HTTP method. (4) For the selected new method, click Deploy API and follow the tutorial instructions. (5) Create a new stage or use an existing one to test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment