Improved output for check28

This commit is contained in:
Toni de la Fuente
2016-10-12 16:41:55 -04:00
parent f7256d1b97
commit 0679fe43e8

View File

@@ -587,7 +587,7 @@ check28(){
for key in $CHECK_KMS_KEYLIST; do
CHECK_KMS_KEY_ROTATION=$($AWSCLI kms get-key-rotation-status --key-id $key --profile $PROFILE --region $regx --output text)
if [[ $CHECK_KMS_KEY_ROTATION == "True" ]];then
echo -e " $OK OK $NORMAL, Key $key in Region $regx is set correctly"
echo -e " $OK OK, Key $key in Region $regx is set correctly$NORMAL"
else
echo -e " $RED WARNING! Key $key in Region $regx is not set to rotate or Default KMS Key In Use!!$NORMAL"
fi