cloudformation-swagger-api-gateway icon indicating copy to clipboard operation
cloudformation-swagger-api-gateway copied to clipboard

Introduction to Swagger for CloudFormation and API Gateway

Sample project that shows how AWS CloudFormation can be used to create an AWS API Gateway by using Swagger for configuring a RESTful API and map it to an AWS Lambda function.

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