Problem scenario
Sometimes you forget what is running in AWS. You want to be notified when you have spent a certain amount of money. How do you set up a notification in your AWS account that will apprise you when you have have spent over a certain amount of money for a given month?
Solution
- Log into the AWS Management Console (aka the web UI).
- Go to CloudWatch
- Click "Create alarm"
- Click "Select metric"
- Click on the hyperlink for "Billing"
- Click on the hyperlink for "Total Estimated Charge"
- Check the radio button for the desired Currency (for the U.S. it will be "USD")
- Click the "Select metric" button in the lower right-hand corner
- Enter a metric name
- Enter a threshold value in the appropriate field.
- Expand "Additional configuration" and configure as necessary. (This is an optional step.) You may or may not want to set other settings (e.g., for the "Missing data treatment" drop down, you may want to select "Treat missing data as bad (breaching threshold)" to be extremely conservative).
- Click "Next"
- For "Send a notification to…" choose a list with the email addresses you want to receive the notification
- Click "Next"
- Click "Create alarm"