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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠