I have created an autoscaling group with aws cloud formation but anytime I change the userdata, the instances don't get replaced. 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
OR
Manually you need to terminate the instance and new instance should automatically spin-up depending on ASG configuration. You should able to see userdata
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.