Skip to content

Instantly share code, notes, and snippets.

@cleydson
Created August 3, 2022 16:01
Show Gist options
  • Select an option

  • Save cleydson/4ccf02651b3127e3c3366d3092d45e66 to your computer and use it in GitHub Desktop.

Select an option

Save cleydson/4ccf02651b3127e3c3366d3092d45e66 to your computer and use it in GitHub Desktop.
List all Route 53 records using AWS CLI
for z in $(aws route53 list-hosted-zones|jq '.[] | .[] | .Id' | sed 's!/hostedzone/!!' | sed 's/"//g'); do
echo $z;
aws route53 list-resource-record-sets --hosted-zone-id $z >> recordsFile;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment