Skip to content

Instantly share code, notes, and snippets.

@eramm
Last active July 13, 2022 22:17
Show Gist options
  • Save eramm/b0454978b116775b491f6addbb6ccfca to your computer and use it in GitHub Desktop.
Save eramm/b0454978b116775b491f6addbb6ccfca to your computer and use it in GitHub Desktop.
aws-elb-describe-load-balancers

Do you ever find yourself having to look through your AWS ELBs to find bad TLS/SSL configurations ?

aws elb describe-load-balancers --output json | jq -r '.LoadBalancerDescriptions[] | [ (.LoadBalancerName, .ListenerDescriptions[].Listener.Protocol), (.ListenerDescriptions[].PolicyNames[]), (.Scheme)] | @csv' >> all-loadbalancers.csv

List ELB Names, Listeners, Security Policy, and whether the ELB is Internal or Internet facing. Save as CSV

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment