CodeDeploy sometimes fail with autoscaling

0

I have an autoscaling with a run configuration using a windows image.

I also have an application with an execution group and pipeline configured to deploy this autoscaling. Only deploy copying a .zip file from S3 to windows.

It happens that sometimes the implantation works and other times it doesn't, what could cause this? When it fails, the deployment is pending for about an hour and then an UnkownError is generated in the ApplicationStop event.

I don't understand why sometimes it works and sometimes it doesn't.

質問済み 2年前240ビュー
1回答
2

It might be because of the Healthcheck you have configured at the Loadbalancer level.

profile picture
エキスパート
回答済み 1年前
  • It was actually something else. I was using an image on EC2 created for the A1 subnet (for example). In the autoscaling had configured to create the EC2 in any subnet, it happens that when he created for others than the A1 the error occurred. It was just configuring EC2 to always create in the same subnet as the image and it worked.

    I would have liked to have created the image without setting the default subnet so that it would use them randomly. When I use the standard AWS VPC it even works, but with my private one I couldn't do that

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

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

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

関連するコンテンツ