Created
September 19, 2019 07:49
-
-
Save konstantinj/4c16c331cd8aecf3e77f7978e2c1b377 to your computer and use it in GitHub Desktop.
Export all AWS Route53 Records from all Hosted Zones to CSV files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws route53 list-hosted-zones | jq -r '.HostedZones[] | .Id + " " + .Name' | xargs -l bash -c 'aws route53 list-resource-record-sets --hosted-zone-id $0 | jq -r ".ResourceRecordSets[] | [.Name, .Type, (.ResourceRecords[]? | .Value), .AliasTarget.DNSName?] | @tsv" > ${1}csv' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment