Prerequisites
| Requirement | Description |
|---|---|
| AWS account with CloudWatch access | Permissions to view metrics and create alarms |
| Running EC2 instance | The instance you intend to monitor |
| Verified email subscription for SNS | Confirmed subscription to receive alarm notifications |
Make sure your IAM user or role has the following managed policies:
CloudWatchFullAccessAmazonSNSFullAccess
1. Open the Alarms Dashboard
- Sign in to the AWS Management Console and open CloudWatch.
- In the left navigation pane, choose Alarms, then click Create alarm.

2. Select the EC2 CPUUtilization Metric
- On Select metric, pick EC2.
- Under Per-Instance Metrics, locate and select your instance’s CPUUtilization metric.
- Click Select metric.

3. Define the Alarm Threshold
Configure the alarm conditions on the Configure metric page:| Setting | Value |
|---|---|
| Statistic period | 5 minutes |
| Threshold type | Static |
| Condition | GreaterThanThreshold |
| Threshold value | 70 |

Custom metrics and long-term storage can incur additional charges. Review CloudWatch pricing before enabling high-frequency monitoring.
4. Configure Notifications via SNS
Under Notification, choose Create new topic and enter:- Topic name: Send_email_to_Admin
- Endpoint: [email protected]


5. Name, Review, and Create
- Provide a name such as
CPUUtilizationAbove70and an optional description. - Review all settings:
- Metric: CPUUtilization for your EC2 instance
- Period and statistic
- Threshold: GreaterThan 70
- Notification: SNS email to [email protected]
- Click Create alarm.

Your CloudWatch alarm is now active. When the average CPU utilization exceeds 70% over a five-minute span, an email is sent to the administrator. Monitor and adjust thresholds as needed to align with your application’s performance requirements.