Commit 90cd8822 authored by Xueshan Feng's avatar Xueshan Feng
Browse files

Added AWS account validation.

parent b260f0f5
......@@ -14,9 +14,16 @@ then
fi
if [ "X$awsprofile" = "X" ];
then
echo "AWS profile for authentication is requored."
echo "AWS profile for authentication is required."
exit 1
fi
aws --profile $awsprofile support help 2>/dev/null 1>&2
if [ $? = "255" ];
then
echo "Account $awsprofile doesn't exit."
exit 1
fi
server="${server%%.*}"
domaincert="stanford_edu_cert.cer"
intermcert="stanford_edu_interm.cer"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment