简体   繁体   English

AWS Cloud Formation 没有取代实例

[英]AWS Cloud Formation not replacing insances

I have created an autoscaling group with aws cloud formation but anytime I change the userdata, the instances don't get replaced.我已经使用 aws 云形成创建了一个自动缩放组,但是每当我更改用户数据时,实例都不会被替换。 Is there a way to force this behavior?有没有办法强制这种行为?

You need to implement instance-refresh for ASG: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html您需要为 ASG 实施实例刷新: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html

OR或者

Manually you need to terminate the instance and new instance should automatically spin-up depending on ASG configuration.您需要手动终止实例,新实例应根据 ASG 配置自动启动。 You should able to see userdata您应该能够看到用户数据

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM