Created
August 1, 2016 19:43
-
-
Save loganlinn/82297d1fd579d44a8d694682530c6946 to your computer and use it in GitHub Desktop.
elb instance ips
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| aws elb describe-load-balancers --region us-east-1 --load-balancer-names $1 --query 'LoadBalancerDescriptions[*].Instances[*].[InstanceId]' --output text |\ | |
| xargs -I {} aws ec2 describe-instances --region us-east-1 --filter Name=instance-id,Values={} --query 'Reservations[*].Instances[*].{id:InstanceId, privateIp:PrivateIpAddress}' --output text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment