Skip to content

Instantly share code, notes, and snippets.

@rashidul0405
Forked from porjo/dump_route53_records.md
Created February 9, 2021 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rashidul0405/0da9988879a51b362bffe85f9da6b037 to your computer and use it in GitHub Desktop.
Save rashidul0405/0da9988879a51b362bffe85f9da6b037 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