This rule specifies that Auto Scaling groups with load balancers must implement health checks for optimal performance.
Rule | Auto Scaling groups with a load balancer should use health checks |
Framework | NIST Cybersecurity Framework (CSF) v1.1 |
Severity | ✔ Critical |
Rule Description: Auto Scaling groups with a load balancer should use health checks for NIST Cybersecurity Framework (CSF) v1
Rule Summary
This rule requires that all Auto Scaling groups utilizing a load balancer should have health checks implemented, in accordance with the NIST Cybersecurity Framework (CSF) version 1.
Why is this important?
By implementing health checks for Auto Scaling groups with load balancers, you ensure that instances within the group are regularly monitored for their health status. Health checks enable the load balancer to detect unhealthy instances and remove them from the pool of available resources. This improves the overall availability and reliability of your application or service.
Troubleshooting Steps
If you encounter issues related to the health checks for your Auto Scaling groups with load balancers, follow these troubleshooting steps:
If these steps do not resolve the issue, further investigation or contacting your cloud provider's support may be necessary.
Necessary Code
If you need to implement health checks for your Auto Scaling groups with load balancers, you can use the following AWS CLI commands:
aws elbv2 create-target-group \ --name <target-group-name> \ --protocol <protocol> \ --port <port> \ --vpc-id <vpc-id> \ --health-check-protocol <health-check-protocol> \ --health-check-port <health-check-port> \ --health-check-path <health-check-path> \ --healthy-threshold-count <healthy-threshold-count> \ --unhealthy-threshold-count <unhealthy-threshold-count> \ --timeout-seconds <timeout-seconds> \ --interval-seconds <interval-seconds> \ --matcher <matcher>
aws autoscaling attach-load-balancer-target-groups \ --auto-scaling-group-name <auto-scaling-group-name> \ --target-group-arns <target-group-arns>
Make sure to replace the placeholders (e.g.,
<target-group-name>
, <protocol>
, <port>
) with the actual values relevant to your setup.Step-by-Step Guide for Remediation
Follow these steps to implement health checks for your Auto Scaling groups with load balancers:
By following these steps, you will successfully implement health checks for your Auto Scaling groups with load balancers as per the NIST Cybersecurity Framework (CSF) version 1 requirements.