Skip to content

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

License

Notifications You must be signed in to change notification settings

Cloud-DevOps-Labs/cloudformation-api-gateway

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 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.

Languages

  • JavaScript 65.3%
  • Shell 34.7%