Skip to content

Instantly share code, notes, and snippets.

@farrellit
Last active June 8, 2018 13:51
Show Gist options
  • Save farrellit/74e0c7c4fc8d63e47583cbcc0fdfab38 to your computer and use it in GitHub Desktop.
Save farrellit/74e0c7c4fc8d63e47583cbcc0fdfab38 to your computer and use it in GitHub Desktop.
aws route53 list-hosted-zones --query HostedZones[?Id!=null].Id --output text \
| grep -v None \
| xargs -n 1 -P 10 \
aws route53 list-resource-record-sets \
--query 'ResourceRecordSets[?AliasTarget!=null][AliasTarget.DNSName]' \
--output text --hosted-zone-id | grep -F elb.amazonaws.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment