0

So, I've created a stack with app version 1.0.0.0. Time for release so I update the parameters file with the new configs and via cli send the stack-update.

I can see the stack been updated and the autoscaling update complete. But I don't see the EC2s updating/terminating themselves.

I have my autoscaling set to 1/2/1; min/max/desired. What am I missing to automate this process? I really do not want to have to manually go into the console and terminate EC2 one by one...

iCodeLikeImDrunk
  • 17,085
  • 35
  • 108
  • 169

1 Answers1

1

As far as CloudFormation is concerned, your infrastructure has been updated correctly. This is because you have not changed any property on the Amazon EC2 instances that would force an update.

There are various reports that the EC2 instances can be 'forced' to replace by modifying something in the User Data (eg a version number or using a parameter). This would trigger replacement of the instances when the stack is updated.

See:

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
  • ah, so there's no real automagic way. im working on my decvi environment, i guess i'll just have to shoot a few terminate commands... thanks for the resources – iCodeLikeImDrunk Jul 06 '18 at 13:13