Skip to content

Instantly share code, notes, and snippets.

@sonnykt
Forked from porjo/dump_route53_records.md
Created December 5, 2018 00:14
Show Gist options
  • Save sonnykt/6801fea859b2c9dabb7e4097bba55af1 to your computer and use it in GitHub Desktop.
Save sonnykt/6801fea859b2c9dabb7e4097bba55af1 to your computer and use it in GitHub Desktop.
Export route53 records to CSV

Retrieve hosted zones with aws route53 list-hosted-zones then enter the zone Id below:

aws route53 list-resource-record-sets --hosted-zone-id "/hostedzone/xxxxxxxxxxx" | \
   jq -r '.ResourceRecordSets[] | [.Name, .Type, (.ResourceRecords[]? | .Value), .AliasTarget.DNSName?]  | @tsv'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment