Skip to content

Instantly share code, notes, and snippets.

@dijeesh
Created April 16, 2019 12:03
Show Gist options
  • Select an option

  • Save dijeesh/ce97de40ac5f419cfb76351d95d7d373 to your computer and use it in GitHub Desktop.

Select an option

Save dijeesh/ce97de40ac5f419cfb76351d95d7d373 to your computer and use it in GitHub Desktop.
Change xxxxxxxxxxx with your HOSTED-ZONE-ID
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