Skip to content

An automated setup of AWS API Gateway with AWS Lambda and as a proxy.

License

Notifications You must be signed in to change notification settings

5orenso/aws-cloudformation-api-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS API Gateway done with Cloudformation

Initial setup

This should only be run once!

# Create the base API setup
$ bash ./bin/create-stack.sh --template base

# Create a new resource
$ bash ./bin/create-stack.sh --template proxy

Update stack

After every merge you can run this command to update the stack.

# Update the base API setup
$ bash ./bin/create-stack.sh --template base --update-stack

# Update the proxy resource
$ bash ./bin/create-stack.sh --template proxy --update-stack

Re-deploy an API Stage after adding more resources

After you update your resources you need to redeploy your stages to make the changes visible.

# Redeploy your dev stage
$ aws apigateway create-deployment --rest-api-id 'my-api-id' --stage-name 'dev'

# Redeploy your prod stage
$ aws apigateway create-deployment --rest-api-id 'my-api-id' --stage-name 'prod'

Other Resources

About

An automated setup of AWS API Gateway with AWS Lambda and as a proxy.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages