Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (12.9k points)

I have set the 'Application Healthcheck URL' (aws:elasticbeanstalk:application) for my elasticbeanstalk application, and during the night the two servers started failing this check.

It seems that the autoscaling group set up by elasticbeanstalk has a health check type of ec2 which means that the servers did not get terminated and replaced, leaving 2 out of service servers attached to the load balancer.

How can I change the autoscaling group's health check type to be elb using the elasticbeanstalk's configuration settings? I cannot find any documented way of changing this value, but it must be a fairly common requirement.

Thanks

1 Answer

0 votes
by (18.2k points)

To achieve this, you will have to make changes in your config file. It should look something like:

Resources:

    AWSEBAutoScalingGroup:

        Type: "AWS::AutoScaling::AutoScalingGroup"

        Properties:

            HealthCheckType: ELB

            HealthCheckGracePeriod: 600

you can also refer to the following link for more details.

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-as-group.html

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...