Tagged Questions
0
votes
1answer
125 views
How can I iterate through each ec2 instance attached to a specific load balancer in bash?
I have this bash line that gives me the IPs of the EC2 instances attached.
export LB_NAME='lb'
ec2-describe-instances `elb-describe-instance-health $LB_NAME --show-long | cut -d , -f 2` | grep ...