Cloud Defense Logo

Products

Solutions

Company

Book A Live Demo

Rule: EC2 Instance Detailed Monitoring Should Be Enabled

This rule states that EC2 instance detailed monitoring should be enabled for security purposes.

RuleEC2 instance detailed monitoring should be enabled
FrameworkFedRAMP Low Revision 4
Severity
Medium

Detailed Description:

Enabling detailed monitoring for EC2 instances is a requirement for FedRAMP Low Revision 4 compliance. Detailed monitoring provides enhanced monitoring capabilities for your EC2 instances, allowing you to gather more granular performance metrics at a higher frequency. This ensures enhanced visibility into your EC2 instances, which is crucial for meeting security and compliance standards.

Troubleshooting Steps:

In case you encounter any issues while enabling detailed monitoring for an EC2 instance, you can follow these troubleshooting steps:

  1. 1.

    Verify IAM permissions: Ensure that the IAM role or user associated with your EC2 instance has the necessary permissions to enable detailed monitoring. Check for any missing or incorrect permissions that might prevent the enabling of detailed monitoring.

  2. 2.

    Verify instance type compatibility: Double-check if the instance type you are using supports detailed monitoring. Some older or specialized instance types may not support this feature. In such cases, you may need to consider upgrading your instance type to avail detailed monitoring capabilities.

  3. 3.

    Check CloudWatch agent installation: If you have recently installed or updated the CloudWatch agent on your EC2 instance, ensure the installation is successful and the agent is running properly. Any issues with the agent installation or configuration can hinder the enabling of detailed monitoring.

  4. 4.

    Review CloudWatch logs: Examine the CloudWatch logs for any error messages or warnings related to detailed monitoring. The logs can provide valuable insights into the root cause of the problem and help in troubleshooting.

Necessary Codes:

There are no specific codes that need to be implemented for enabling detailed monitoring for EC2 instances in this scenario. Detailed monitoring can be enabled through the AWS Management Console or via AWS CLI commands, which we will discuss in the following steps.

Step-by-Step Guide for Remediation:

Follow these step-by-step instructions to enable detailed monitoring for an EC2 instance:

  1. 1.

    AWS Management Console:

    • Log in to the AWS Management Console.
    • Navigate to the EC2 Dashboard.
    • Select the desired EC2 instance for which you want to enable detailed monitoring.
    • Right-click on the instance and choose "Monitor and troubleshoot" > "Enable Detailed Monitoring".
    • Click "Confirm" to enable detailed monitoring for the selected instance.
  2. 2.

    AWS CLI:

    • Open the AWS CLI or an AWS SDK-supported command prompt.
    • Run the following command to enable detailed monitoring for an EC2 instance:
      aws ec2 monitor-instances --instance-ids <instance_id>
      
      Replace
      <instance_id>
      with the ID of the EC2 instance you want to monitor.

    Note: AWS CLI requires proper configuration and permission to run this command successfully.

  3. 3.

    Verify detailed monitoring status:

    • Go back to the EC2 Dashboard in the AWS Management Console.
    • Select the EC2 instance for which you enabled detailed monitoring.
    • In the "Monitoring" tab, check if the detailed monitoring status shows as "Enabled". If it does, then detailed monitoring is successfully enabled for the respective EC2 instance.

By following these steps, you can ensure that detailed monitoring is enabled for your EC2 instances, satisfying the FedRAMP Low Revision 4 compliance requirement.

Is your System Free of Underlying Vulnerabilities?
Find Out Now