So I get that when the ELB healthchecks fails for the instances, the instances are not replaced. By default the ASG healthcheck type is set to EC2 in Beanstalk. So even if the ELB healthcheck fails, the instances wont be replaced.
In order to replace the instances based on ELB healthchecks, we would have to set the HealthCheckType to ELB using the .ebextions config file:
Resources: AWSEBAutoScalingGroup: Type: AWS::AutoScaling::AutoScalingGroup Properties: # Example syntax of a property that takes in the actual value HealthCheckType: ELB HealthCheckGracePeriod: 600
Awesome, thank you!
- Accepted Answerasked a year ago
- How are EBS volumes in an unhealthy instance handled when a new instance is created by Auto Scaling?Accepted Answerasked 3 years ago
- Accepted Answerasked 3 months ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 9 months ago
- How can I automate the replacement of unhealthy Amazon EC2 instances in an Elastic Beanstalk environment?AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 8 months ago
- EXPERTpublished a month ago
- EXPERTpublished 7 months ago