Skip to content

Commit

Permalink
instances under elb
Browse files Browse the repository at this point in the history
  • Loading branch information
DheerajJoshi authored Mar 29, 2019
1 parent 3b04fd8 commit 9e0cb2e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions instance_under_elb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

########
# How to use
# ./instances_under_elb.sh <elb-name>
#######

elb_name=$1
aws elb describe-load-balancers --load-balancer-name $elb_name | jq -r '.LoadBalancerDescriptions[].Instances[].InstanceId'

0 comments on commit 9e0cb2e

Please sign in to comment.