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.

Revisions

  1. @porjo porjo revised this gist Apr 19, 2017. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions dump_route53_records.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,4 @@

    Output tab delmited fields (replace zone id with yours).
    Retrieve hosted zones with `aws route53 list-hosted-zones` then enter the zone Id below:

    ```sh
    aws route53 list-resource-record-sets --hosted-zone-id "/hostedzone/xxxxxxxxxxx" | \
  2. @porjo porjo revised this gist Apr 19, 2017. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions dump_route53_records.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,7 @@

    ```
    Output tab delmited fields (replace zone id with yours).

    ```sh
    aws route53 list-resource-record-sets --hosted-zone-id "/hostedzone/xxxxxxxxxxx" | \
    jq '.ResourceRecordSets[] | [.Name, .Type, (.ResourceRecords[]? | .Value), .AliasTarget.DNSName?] | @csv'
    jq -r '.ResourceRecordSets[] | [.Name, .Type, (.ResourceRecords[]? | .Value), .AliasTarget.DNSName?] | @tsv'
    ```
  3. @porjo porjo created this gist Apr 19, 2017.
    5 changes: 5 additions & 0 deletions dump_route53_records.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@

    ```
    aws route53 list-resource-record-sets --hosted-zone-id "/hostedzone/xxxxxxxxxxx" | \
    jq '.ResourceRecordSets[] | [.Name, .Type, (.ResourceRecords[]? | .Value), .AliasTarget.DNSName?] | @csv'
    ```