Lab complete!
Now that you have completed this lab, make sure to update your Well-Architected review if you have implemented these changes in your workload.
Click here to access the Well-Architected Tool
Cost Anomaly Detection is a feature of AWS Cost Explorer that performs the heavy lifting of continuous cost monitoring and saves users the tedious work of manually identifying unusual spend patterns in their AWS account. In other words, it helps users better govern their AWS cost and prevents unexpected charges at the end of the month.
This section walks you through the steps to get started with AWS Cost Anomaly Detection by creating a cost monitor which will enable you to establish spending segments. AWS can assess any unusual expenses at a more specific and preferred level based on the segments you have defined. A cost monitor continuously looks at your AWS spend and uses machine learning to detect anomalies. A cost monitor can be configured to analyze your AWS services independently or by member accounts, cost allocation tags or cost categories. Creating multiple monitors is possible if there is a need to analyze spend across different segments. However, a single monitor is created for this lab to analyze spending segmented by AWS services. During the process of creating the monitor, an alert subscription is also created. Alert subscription is a mechanism to notify relevant users or administrators if an anomaly is detected. You can notify designated individuals by email or Amazon SNS depending on the required alert frequency.
Follow the following steps to set up a new cost monitor and an alert subscription:
To create a cost monitor, click Cost monitors tab on the bottom of Cost Anomaly Detection Overview page:
On the Cost monitors tab, click Create monitor:
As a first step, select one of the monitor types. Under Choose monitor type select AWS Services - Recommended. It is the recommended monitor type as it meets the use case of most customers. It is the recommended monitor type as it meets the use case of most customers. It segments the total cost by each AWS service. For example, your spend patterns for Amazon EC2 usage might differ from your AWS Lambda or Amazon S3 spend patterns. By segmenting spends by AWS services, AWS Cost Anomaly Detection can detect separate spend patterns that help decrease false positive alerts:
Scroll down, name your monitor and click Next to go to the next step Configure alert subscription:
On Configure alert subscription step:
Scroll down and under Threshold section:
Once above options are configured, a Summary is displayed to inform the user of the condition in which they will receive anomaly alerts.
There are two types of thresholds: absolute and percentage.
While setting threshold values, customers must consider their individual use case and risk appetite. For example, a 5% increase might be significant for some customers while negligible for others. Also, consider any upcoming migrations or events that can cause substantial changes in your spend pattern as that will require re-adjusting your threshold values.
A new monitor can take 24 hours to begin detecting new anomalies.
You have completed this section of the lab. In this section, you successfully created a Cost Monitor for analyzing cost segmented by AWS services. An alert subscription was also configured to send daily summary report of detected anomalies via email.
Click on Next Step to continue to the next section.
Now that you have completed this lab, make sure to update your Well-Architected review if you have implemented these changes in your workload.
Click here to access the Well-Architected Tool