Created
October 4, 2018 16:54
-
-
Save colehocking/83afd7d207166e181b869c4af0e8baa6 to your computer and use it in GitHub Desktop.
Get AWS Domains
This file contains hidden or 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
#!/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