Merge pull request #228 from martinusnel/hotfix/check111

Fixed Bash test.
This commit is contained in:
Toni de la Fuente
2018-08-10 19:07:49 -04:00
committed by GitHub

View File

@@ -18,7 +18,7 @@ check111(){
# "Ensure IAM password policy expires passwords within 90 days or less (Scored)"
COMMAND111=$($AWSCLI iam get-account-password-policy $PROFILE_OPT --region $REGION --query PasswordPolicy.MaxPasswordAge --output text 2> /dev/null)
if [[ $COMMAND111 ]];then
if [ "$COMMAND111" -le "90" ];then
if [[ "$COMMAND111" -le "90" ]];then
textPass "Password Policy includes expiration (Value: $COMMAND111)"
else
textFail "Password expiration is set greater than 90 days"