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
Tools and dependencies
In order to execute the scripts, you need to install the following tools:
- AWS CLI (AWS Command Line Interface)
- npm (JavaScript package manager*)
- nodejs (JavaScript Backend Framework* based on V8 Chrome Engine)
- Best installed with nvm with version chaning, no sudo permission, located at home user.
Scripts
Script | Description |
---|---|
create-stack.sh | Deploys the stack |
integration-test.sh | Executes integration tests |
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.