How to do it...

We can create a CloudWatch alarm using existing metrics as follows:

  1. Go to the CloudWatch service in the console.
  2. Click on Alarms from the left sidebar.
  3. Click on Create alarm.
  4. Click on Select metric. This should show us all the metrics that are available to us based on the services we use:
  1. Click on Billing.
  2. Click on By Service.
  3. Click on Amazon EC2.
  4. Click on Select metric. This will take us to the Specify metric and conditions screen.
  1. In the Metric section of the Specify metric and conditions screen, use the defaults shown in the following screenshot:
  1. In the Condition section of the Specify metric and conditions screen ...

Get AWS Security Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.