Api Gateway deployment issue

0

I'm having a pipeline for API gateway which creates the API and deploys it. on the first commit it will deploy. but from the second commit if a API script is changed the deployment will not occur automatically. Is there any way to deploy the API Gateway through CloudFormation when the script has changed.

2 Answers
0

One way to do it would be to create API Gateway through a Cloudformation Custom Resource:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-custom-resources.html).

Another way (which is less assuring in some cases) would be to include a dynamic value in the API Gateway Stage Description like todays date in your Cloudformation Template.

${AWS::Date}

AWS
vtjean
answered 7 months ago
0

Hi Afsal - one way would be to use AWS SAM as it has an AlwaysDeploy setting that should force the API deployment to occur even when no changes are detected, however this feature is not directly available through CloudFormation.

Taher
answered 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions