CloudFormation doesn't deploy to API gateway stages on update

1

When I run CloudFormation deploy using a template with API Gateway resources, the first time I run it, it creates and deploys to stages. The subsequent times I run it, it updates the resources but doesn't deploy to stages. How can i solve this issue.

1 個回答
-1

The reason that a deployment doesn't happen is because the Deployment in the template hasn't changed. CloudFormation changes resources based on modifications to the template and because the AWS::ApiGateway::Deployment isn't updated it doesn't trigger a new deployment is triggered in APi Gateway.

You can create a new deployment or you might try updating the Description or StageDescription - I haven't tried those last two but changing them might work.

profile pictureAWS
專家
已回答 1 年前
  • Tried everything but not working.

  • Did creating a new deployment in CloudFormation not work as well?

  • That's very unusable, since that requires editing the template for each deployment. Very bad, if you are deploying your API GW per CI/CD, as would be recommended.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南