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回答
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
回答済み 8ヶ月前
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
回答済み 8ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ