Skip to content

Instantly share code, notes, and snippets.

@colehocking
Created October 4, 2018 16:54
Show Gist options
  • Save colehocking/83afd7d207166e181b869c4af0e8baa6 to your computer and use it in GitHub Desktop.
Save colehocking/83afd7d207166e181b869c4af0e8baa6 to your computer and use it in GitHub Desktop.
Get AWS Domains
#!/bin/bash
# Gather AWS Domain info
declare -a domain_list=( $(aws route53domains list-domains | jq -r .Domains[].DomainName) )
for domain in "${domain_list[@]}"
do
echo ${domain}
echo "Admin Contact:"
aws route53domains get-domain-detail --domain-name ${domain} | jq -r .AdminContact.Email
echo "Registrant Contact:"
aws route53domains get-domain-detail --domain-name ${domain} | jq -r .RegistrantContact.Email
echo "Tech Contact:"
aws route53domains get-domain-detail --domain-name ${domain} | jq -r .TechContact.Email
echo "----------------------------------"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment