Ensure your Amazon Auto Scaling Group (ASG) health check feature is properly configured to detect whether the registered EC2 instances are healthy or not. If a load balancer is being used for distributing the traffic across the ASG instances, make sure that the ELB health check configuration is enabled (works at hypervisor and application level). If the Auto Scaling Group is not using a load balancer, make sure that the EC2 health check configuration is enabled (works at hypervisor level only).
This rule can help you with the following compliance standards:
- APRA
- NIST4
For further details on compliance standards supported by Conformity, see here.
This rule can help you work with the AWS Well-Architected Framework.
This rule resolution is part of the Conformity Security & Compliance tool for AWS.
efficiency
By using the right health check configuration for your Amazon Auto Scaling Groups (ASGs), you can increase the reliability and availability of the applications deployed within your ASGs.
Audit
To determine if your Auto Scaling Groups are configured with the correct health check configuration (ELB or EC2-based), perform the following actions:
Remediation / Resolution
To reconfigure your Auto Scaling Group health check configuration based on whether your ASG is associated with a load balancer or a target group, perform the following actions:
If your Auto Scaling Group is associated with a load balancer or a target group, set the health check type to ELB. This will enable your Auto Scaling Group (ASG) to delegate the health checks to the associated Classic Load Balancer or ALB/NLB target group:
If your Auto Scaling Group is not associated with a load balancer or a target group, set the health check type to EC2. The health check feature will use the status checks returned from the EC2 instances registered with the selected ASG:
References
- AWS Documentation
- Auto Scaling Groups
- AWS Trusted Advisor check reference
- Health Checks for Auto Scaling Instances
- AWS Command Line Interface (CLI) Documentation
- autoscaling
- describe-auto-scaling-groups
- update-auto-scaling-group
- CloudFormation Documentation
- Amazon EC2 Auto Scaling resource type reference
- Terraform Documentation
- AWS Provider