Skip to content

Instantly share code, notes, and snippets.

@timkunze
Forked from porjo/dump_route53_records.md
Created October 1, 2024 14:03
Show Gist options
  • Save timkunze/24fa7ad3018953c404a684a3d393ac2a to your computer and use it in GitHub Desktop.
Save timkunze/24fa7ad3018953c404a684a3d393ac2a 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