Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.26 KB

README.md

File metadata and controls

48 lines (30 loc) · 1.26 KB

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