Check if detailed monitoring is enabled for EC2 instances to ensure effective monitoring and management.
Rule | EC2 instance detailed monitoring should be enabled |
Framework | NIST Cybersecurity Framework (CSF) v1.1 |
Severity | ✔ Medium |
Rule Description
The NIST Cybersecurity Framework (CSF) is a set of guidelines that provides organizations with a framework for managing and mitigating cybersecurity risks. One of the recommendations in the CSF is to enable detailed monitoring for EC2 instances.
Enabling detailed monitoring on EC2 instances allows for collecting additional system-level metrics at a higher frequency, which can provide greater visibility into the performance and health of the instances. This enhanced monitoring helps organizations identify potential security issues, proactively troubleshoot infrastructure problems, and optimize resource utilization.
Troubleshooting Steps
If there are any issues related to enabling detailed monitoring for EC2 instances, you can follow these troubleshooting steps:
cloudwatch:PutMetricAlarm
and cloudwatch:PutMetricData
permissions.Necessary Codes
No specific codes are required to enable detailed monitoring for EC2 instances. Instead, this can be done through the AWS Management Console or using the AWS Command Line Interface (CLI).
Step-by-Step Guide for Remediation
To enable detailed monitoring for an EC2 instance, follow these steps:
Using AWS Management Console:
Using AWS CLI:
instance-id
with the actual ID of the EC2 instance you want to enable detailed monitoring for:aws cloudwatch put-metric-alarm --alarm-name my-ec2-instance-detailed-monitoring-alarm --alarm-actions action-name --metric-name CPUUtilization --namespace AWS/EC2 --statistic Average --period 60 --threshold 70 --comparison-operator GreaterThanThreshold --evaluation-periods 5 --alarm-description "Alarm when CPU exceeds 70 percent" --unit Percent --dimensions Name=InstanceId,Value=<instance-id>
Enabling detailed monitoring for EC2 instances based on the NIST Cybersecurity Framework can help organizations maintain a higher level of visibility and ensure better security for their infrastructure.