cd ~/IA-DNS/resources

terraform init -upgrade || { echo "terraform validate failed - returning"; return 1; }
terraform validate || { echo "terraform validate failed - returning"; return 1; }
terraform state rm terraform_data.vars[0] 2>null
terraform apply -auto-approve -target terraform_data.vars || { echo "terraform apply of target terraform_data.vars failed - returning"; return 1; }
terraform apply -auto-approve || { echo "terraform apply of remainder failed - returning"; return 1; }

clear;
echo ""; echo "----------------- Make a Note ----------------------"; echo "";
terraform output -raw FA_Public_CIDR_MSG; echo ""
terraform output -raw FA_Public_CIDR
echo ""
echo "";
terraform output -raw DNS_Public_CIDR_MSG; echo ""
terraform output -raw DNS_Public_CIDR
echo ""; 
echo ""; echo "----------------- Make a Note ----------------------"; echo "";
terraform output -raw FA_URL_MESSAGE; echo""
terraform output -raw FA_OAC_URL; echo ""
terraform output -raw FA_FAW_URL; echo ""
echo ""; 
terraform output -raw DNS_Name_Server_Message; echo""
terraform output -raw DNS_NLB_Public_IP; echo""
echo ""; 
terraform output -raw DNS_Domain_MSG; echo""
terraform output -raw FA_ADW_FQDN ; echo""
terraform output -raw FA_OAC_FQDN ; echo""
terraform output -raw FA_FAW_FQDN ; echo""
echo ""; echo "----------------------------------------------------"
