Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- aws elb describe-load-balancers --profile prod | \
- jq '.LoadBalancerDescriptions[] | \
- select(\
- (\
- (.Instances[] | .InstanceId == "i-1b5a85f7") or \
- (.Instances[] | .InstanceId == "i-e3663209") or \
- (.Instances[] | .InstanceId == "i-1c5a85f0")) \
- and (.Instances | length <= 2)\
- ) | \
- .LoadBalancerName'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement