AWS Cost Explorer API aggregate on USAGE_TYPE_GROUP

0

Hello,

I am trying to get the cost and usage data for an AWS Account using the GetCostAndUsage endpoint of the Cost Explorer API. During some investigations, I found out that the data is quite granular, and I would like to aggregate it on a higher level. The USAGE_TYPE_GROUP filter seems to be quite useful for this scenario. Unfortunately, it is only available as a filter and not all services are covered with it. Therefore, it is not that useful in my case. Is it possible or are there any plans for adding the USAGE_TYPE_GROUP as possible groupBy value? For known entities (e.g. EC2: Running Hours) it could just use them and for unknown entities N/A could be returned. Or are there any other possibilities to tackle that problem?

Thanks for you feedback and help

asked 2 years ago531 views
1 Answer
0

You might want to consider the Cloud Intelligence Dashboards which are deployed on top of the AWS Cost & Usage report (CUR). This will give you a scalable way to see a ton of insights into your spend, give you customizable visuals to understand your usage, track every dollar spent, see lots of cost optimization opportunities and visualize how much they'd save you and more. One of the dashboards, the Cost Intelligence Dashboard, has a Cost Explorer++ built in as well so you can continue to do ad hoc queries from a single pane of glass. The CUR is a super granular big data dump AWS can do into an S3 bucket up to 3 times a day, but it can be hard to parse so the dashboards make it really easy to access.

AWS
answered 2 years ago
  • Thanks for the detailed explanation. Unfortunately, we are not able to use the Cloud Intelligence Dashboards because we want to operate on that data. It seems like the only option is to retrieve the data via the S3 bucket and not via an exposed AWS API because the GetCostAndUsage endpoint is not able to return all data, but you are only able to retrieve it using a filter and max. 2 groupBy arguments. Is my assumption right, or is there a way to easily consume it?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions