Setup integration: Amazon CloudWatch Alarm

You need to setup an AWS SNS HTTPS endpoint for this integration!

Amazon CloudWatch provides metrics that you can observe with alarms. I will show you how you can monitor your AWS bill. If your bill goes above a certain threshold, an alert is sent to marbot. You can not only monitor your AWS bill in CloudWatch. CloudWatch provides much more!

Monitoring your AWS bill with a CloudWatch Alarm

  1. Visit https://console.aws.amazon.com/cloudwatch/home?region=us-east-1
  2. Ensure that you are in the N. Virgina region
  3. Click on the Alarm link on the left
  4. Click on the Create Alarm button
  5. Click on the Total Estimated Charge metric under Billing Metrics
  6. Select the only line

You should now see the following screen:

Billing Metric

  1. Click on the Next button on the bottom
  2. Set a Name and a Description for the alert
  3. Set the threshold to $0 to make sure an alert is created (for test purposes only, you can change this later)
  4. In the actions section at the bottom, set Send notification to the SNS topic you created, e.g. marbot.
  5. Save by clicking the Create alarm button.

Billing Metric

Sample Alert

Within a minute you should get an alert in Slack via a direct message:

Billing Alert via CloudWatch Alarm