EC2 check in Auto Scaling group

时间:2018-02-03 08:22:45

标签: amazon-ec2 autoscaling

I have an ASG with min=2, max=4 configuration. In the boot up script of each EC2, I have a series of yum install and starting of 2 spring boot files. Now, when th e load increases and ASG spins up a new EC2 instance, it will perform all these in the boot up script.

Could anybody suggest a good method to validate whether all these yum installs have been successful and also whether the 2 spring boot files are running currently. If there is any problem with these, I dont want the EC2 instance to be attached to ELB.

1 个答案:

答案 0 :(得分:0)

我在执行应用程序和基础架构级别检查后使用cfn-signal将信息发送回Cloudformation

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-signal.html