Advertisement
Guest User

Untitled

a guest
Aug 26th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. aws elb describe-load-balancers --profile prod | \
  2. jq '.LoadBalancerDescriptions[] | \
  3. select(\
  4. (\
  5. (.Instances[] | .InstanceId == "i-1b5a85f7") or \
  6. (.Instances[] | .InstanceId == "i-e3663209") or \
  7. (.Instances[] | .InstanceId == "i-1c5a85f0")) \
  8. and (.Instances | length <= 2)\
  9. ) | \
  10. .LoadBalancerName'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement