Score:0

Stuck in CodeDeploy EC2 termination hell

de flag

I have a situation where a CodeDeploy artifact is bad and has a broken deploy script. So:

  1. EC2 Autoscale Group starts a new EC2 instance.
  2. CodeDeploy deploys to that instance.
  3. The deploy fails.
  4. EC2 Autoscaling immediately terminates the instance due to failed launch.

I deploy a fixed artifact, but the deploy fails because there are no EC2 instances. (I have literally zero idea why deploying to 100% of zero instance is a "failure"...but it is.)

Even after that, CodeDeploy still seems "stuck" on the old version, as if it has no memory of me deploy the new version.

So it continues, over and over to launch instances deploy the broken version, and immediately shut them down, and I can't seem to get it to use a new artifact.


I can delete and recreate the entire deployment group, but that seems excessive.

Is there a better way to fix this situation?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.