【发布时间】:2018-06-04 11:59:18
【问题描述】:
我正在使用 cloudformation UpdatePolicy 属性来执行滚动更新,以防我的 ec2 启动配置发生任何更改。这在使用按需实例时效果很好。但是当我使用现场实例时,我得到以下错误:
Autoscaling rolling updates cannot be performed because the current launch configuration is using spot instances and MinInstancesInService is greater than zero.
将MinInstancesInService 属性设置为零使其工作,但我得到大约 3-5 分钟的停机时间。
有没有办法在不停机的情况下使用 Cloudformation 实现这一目标?如果没有的话,有人可以指出一种更好的方法来自动化这个滚动更新过程,因为我有多个环境并且手动执行非常容易出错。谢谢
【问题讨论】:
标签: amazon-web-services amazon-cloudformation amazon-elb autoscaling