In this lab you will provision an AWS autoscaling group which will create an ELB and 2 EC2 instances with EC2 instances healthchecks
ansible-playbook provision-elb-custom-healthcheks-asg-playbook.yml
aws autoscaling describe-auto-scaling-groups --auto-scaling-group-names workshop-ec2-healthchecks-asg --query 'AutoScalingGroups[0].Instances'
aws elb describe-instance-health --load-balancer-name workshop-ec2-healthchecks-lb
aws ec2 describe-instances --instance-ids <instance_id> --query 'Reservations[0].Instances[0].PrivateIpAddress'
ssh <user>aw@<instance_ip_address> -i <path_to_key>
docker stop rest
aws autoscaling describe-auto-scaling-groups --auto-scaling-group-names workshop-ec2-healthchecks-asg --query 'AutoScalingGroups[0].Instances'
aws elb describe-instance-health --load-balancer-name workshop-ec2-healthchecks-lb
curl http://<ip_addr>:8080/ping