Skip to content

Instantly share code, notes, and snippets.

View Lemmah's full-sized avatar
🐢
Progress, not perfection.

Lemayian JN Lemmah

🐢
Progress, not perfection.
View GitHub Profile
@Lemmah
Lemmah / dump_route53_records.md
Created February 3, 2020 14:44 — forked from porjo/dump_route53_records.md
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'