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.

asked 2 years ago234 views
1 Answer
2

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

profile picture
EXPERT
answered a year ago
  • 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

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions