Fix typos and add to extras extra7132

This commit is contained in:
Toni de la Fuente
2021-02-22 21:44:48 +01:00
parent aa3f8a6b5c
commit 3d834fae42
2 changed files with 5 additions and 5 deletions

View File

@@ -11,12 +11,12 @@
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.
CHECK_ID_extra7132="7.132"
CHECK_TITLE_extra7132="[extra7132] Check if Enhanced monitoring is enabled on RDS instances"
CHECK_TITLE_extra7132="[extra7132] Check if RDS instances has enhanced monitoring enabled"
CHECK_SCORED_extra7132="NOT_SCORED"
CHECK_TYPE_extra7132="EXTRA"
CHECK_SEVERITY_extra7132="Low"
CHECK_ASFF_RESOURCE_TYPE_extra7132="AwsRdsDbInstance"
CHECK_ALTERNATE_check7131="extra7132"
CHECK_ALTERNATE_check7132="extra7132"
CHECK_SERVICENAME_extra7132="rds"
extra7132(){
@@ -27,9 +27,9 @@ extra7132(){
RDS_NAME="$rdsinstance"
MONITORING_FLAG=$($AWSCLI rds describe-db-instances $PROFILE_OPT --region $regx --db-instance-identifier $rdsinstance --query 'DBInstances[*].[EnhancedMonitoringResourceArn]' --output text)
if [[ $MONITORING_FLAG == "None" ]];then
textFail "$regx: RDS instance: $RDS_NAME has Enhanced monitoring disabled!" "$rex"
textFail "$regx: RDS instance: $RDS_NAME has enhanced monitoring disabled!" "$rex"
else
textPass "$regx: RDS instance: $RDS_NAME has Enhanced monitoring enabled." "$regx"
textPass "$regx: RDS instance: $RDS_NAME has enhanced monitoring enabled." "$regx"
fi
done
else