amazon cloudformation - Automate AMI Update in EC2 -


i using cloudformation template create 4 ec2 instances behind elb. these instances associated launch config , auto scaling group. update our amis every 2 months. if have update amis without down time best strategy. using jenkins orchestration.

the plan have in mind template #1- creates asg , launch config tempate #2 creates/updates elb new instances created

first execution 1. create cloudformation stack comprising of launch config , autoscaling group. launch 4 ec2 instances , bootstrap application 2. create 2nd template create elb , bind 4 instances created elb. bind elb asg

when ami has udated 1. execute first template create new (asg)the idea create new , not update asg since elb has continue sending traffic old asg until instances , running.

  1. once servers up, 2nd template update elb new instances , update new auto scaling group new elb.

  2. delete old stack.

is there better achieve this?

cloud formation has support natively. take @ update policy attribute documentation.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -