Skip to content

Instantly share code, notes, and snippets.

@aa6my
Forked from porjo/dump_route53_records.md
Created April 22, 2020 03:37
Show Gist options
  • Save aa6my/ee5a4face1d56c1f4f6f66a496a84970 to your computer and use it in GitHub Desktop.
Save aa6my/ee5a4face1d56c1f4f6f66a496a84970 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