aws elbv2 describe-target-health --target-group-arn
aws elbv2 describe-target-health --target-group-arn <arn>
Risk: Safe
What it does
Shows which servers behind a load balancer pass their health check.
When to use it
When shoppers see errors. Unhealthy targets get no traffic.
Example
$ aws elbv2 describe-target-health --target-group-arn arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/73e2d6bc24d8a067Each target with its state: healthy or not.
$ aws elbv2 delete-load-balancer --load-balancer-arn arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-load-balancer/50dc6c495c0c9188Delete a test load balancer. It bills every hour.
Learn it in: Load balancers · Official docs