Task
Provide sample API specification with CI pipeline for deployment to AWS API Gateway and S3 (only if petstore.yaml
was changed in master branch)
This sample API specification is used by aws-cloudformation-git-confluence-integration sample
Solution
https://github.com/kagarlickij/aws-apigateway-sample
Known issues and workarounds
1. CI pipeline only updates existing API
To deploy API for the first time execute:
aws apigateway import-rest-api --body file://petstore.yaml --region us-east-1
and put id from output to AWS_API_ID
variable in deploy.sh
Production usage caution
This code is for demo purposes only and should never be used in production.