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 Risposte
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
con risposta 8 mesi fa
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
con risposta 8 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande