Introduction to CloudFormation for API Gateway

Sample project that shows how AWS CloudFormation can be used to create an AWS API Gateway backed by AWS Lambda.

Please read the blog post for details.

CloudFormation Template

cloudformation.template

Tools

In order to execute the scripts, you need to install the following tools:

  • AWS CLI (AWS Command Line Interface)
  • npm (JavaScript package manager)

Scripts

Script Description
create-stack.sh Creates the stack
integration-test.sh Executes integration tests
update-stack.sh Updates the stack

Update

On the November 18th, 2016 AWS introduced the Serverless Application Model (or SAM for short) that provides an alternative solution to the one described in this blog post. Please read the AWS blog post and study the related project at the AWS Labs GitHub account for more information.