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 Antworten
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
beantwortet vor 8 Monaten
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
beantwortet vor 8 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen