What is the AWS API Gateway?
The AWS API Gateway is a fully managed, high speed, massive scale gateway for developers to create secure API's. The AWS API GW can act as the entrypoint to your workloads running in the AWS eco system, providing a secure way for you to expose workloads both inside and outside of AWS. The AWS API has no minimum fees and like many other services in AWS, you simply pay for what you use and the data transferred out of the AWS cloud.
Getting Started with AWS Lambda
AWS Lambda runs your code on a high-availability compute infrastructure and performs all of the administration of the compute resources, including server and operating system maintenance, capacity provisioning and automatic scaling, code monitoring and logging. All you need to do is supply your code in one of the languages that AWS Lambda supports (currently Node.js, Java, and Python).
The AWS Console is the simplest way to start using the AWS API GW. Through a simple wizard you create your routes, rules and transformations choosing your AWS workloads as your endpoints for each of the chosen routes.
Getting started with the AWS API GW
Like many of the AWS services, its often simplest to just dive straight in. AWS have a great pool of resources and tutorials to help you get started. We have listed a few of them below.
Build an API as a Lambda Proxy. You will learn how to create Lambda functions and build an API Gateway API to enable a Web client to call the Lambda functions synchronously.
Map Request Parameters for an API Gateway API. You will learn how to map method request parameters to the corresponding integration request parameters for an API Gateway API.
Map Response Payload. You will learn how to use models and mapping templates in API Gateway to transform the output of an API call from one data schema to another.