Trepliev
Trepliev

Reputation: 1

aws autoscaling group ec2 instance create before destroy

In the terraform there is a create_before_destroy setting so it means during the refresh the old vm is still running, the new one is started and after that the old one is destroyed. Is there a possibility to set this setting via aws cli or aws web console? I was not able to find it. Thank you for help!

Jan

Upvotes: 0

Views: 1583

Answers (1)

Marcin
Marcin

Reputation: 238111

Yes, you can use instance refresh. For AWS CLI this is start-instance-refresh and have to adjust MinHealthyPercentage.

For AWS console you have:

enter image description here

Upvotes: 1

Related Questions