Skip to content

Instantly share code, notes, and snippets.

@farrellit
Created December 21, 2016 02:36
Show Gist options
  • Save farrellit/4e526552f1b322706d8d0003d607edfe to your computer and use it in GitHub Desktop.
Save farrellit/4e526552f1b322706d8d0003d607edfe to your computer and use it in GitHub Desktop.
which elbs in route53?
aws route53 list-hosted-zones --query HostedZones[?Id!=null].Id --output text | grep -v None | xargs -n 1 aws route53 list-resource-record-sets --query 'ResourceRecordSets[?AliasTarget!=null][AliasTarget.DNSName]' --hosted-zone-id --output text | grep -F elb.amazonaws.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment