Analyze cost for AWS
Harness Cloud Cost Management (CCM) allows you to view your AWS costs at a glance, understand what is costing the most, and analyze cost trends. CCM Perspectives displays the data for all your Amazon Web Services (ECS, EC2, and so on) and also helps you get details of:
- AWS cloud cost spending trend
- AWS service costing the most in the selected time range, for example, EC2 spent last month
- Primary cost contributor, for example, region, account, instance type, or usage type
- AWS spending by region, for example, US East or US West
Before You Begin
Step: Analyze AWS Cost
The Perspectives provides deep insights into your AWS costs. The cost includes all the applicable credits and discounts.
In Cloud Costs, select Perspectives,and then select AWS. The AWS services are displayed.
Select the date range for the costs you want to analyze.
You can use the following options to Group By:
AWS: Under AWS, you can Group by:
Service: Each of your active AWS services is displayed.
Account: Each AWS account you are using to connect Harness to AWS via a Harness AWS Cloud Provider. This displays the Account Name along with the Account ID (if the Account Name is available, else only the Account ID is displayed).
Instance Type: Each Amazon EC2 instance type you are using.
Usage Type: Usage types are the units that each service uses to measure the usage of a specific type of resource. For example, the BoxUsage:t2.micro(Hrs) usage type filters by the running hours of Amazon EC2 t2.micro instances.
Region: Each AWS region you are currently running services in.
Product: Each of your active products with its cloud costs.
Label: Each label that you assign to your AWS resources. You can select a label name to get further granular details of your label.
Tags: Each tag that you assign to your AWS resources. You can select a Tag name to get further granular details of your tags.For tags to appear in the Perspective, you must activate the user-defined cost allocation tags in the AWS Billing and Cost Management console. For more information, see Activating User-Defined Cost Allocation Tags. In CCM, the tag keys are updated as the following:
- For the user-defined tags,
user_
prefix is added. - For the AWS system tags,
aws_
prefix is added. - The characters that do not follow regex
[a-zA-Z0-9_]
are changed to_
. - The tags are case-sensitive. If the tags are specified as
UserName
andusername
, then the number suffix_<Number>
is added to the tag. For example,UserName
andusername_1
.
- For the user-defined tags,
Option: Add Filter
Perform the following steps to add filters.
In Cloud Costs, select Perspectives,and then select AWS.
Select add filter.
Select AWS, Region, Product, or Label.
Select the operator. The supported operators are:
- IN: The exact match operation is used to filter for the value specified.
- NOT IN: The exact match operation is used to filter for the value that is not specified.
Select value for your filter. You can select multiple values. You can also filter and customize your result using the search option.