What are the AWS Billing and Cost Management - GetCostAndUsage GroupBy limits

0

If I was to have an application that launches EC2 instances to run jobs and I was to tag each instance with a user id, I can see that using GetCostAndUsage i can GroupBy that Tag and get user level usage/costs. I can only assume that there will be a limit at which the API will not return successfully e.g. if we have 10000 users? Is there any indication what that limit would be, or would there be any way to aggregate low usage "users" into an "other" level of the returned data i.e. top 10 most prolific users and then everyone else?

Thanks

已提問 4 個月前檢視次數 2103 次
1 個回答
0

Hello,

Thank you for your post,

You can Retrieves cost and usage metrics for your account. You can specify which cost and usage-related metric that you want the request to return. For example, you can specify BlendedCosts or UsageQuantity. You can also filter and group your data by various dimensions, such as SERVICE or AZ, in a specific time range. For more information, please refer: https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_GetCostAndUsage.html

GroupBy:

You can group AWS costs using up to two different groups, either dimensions, tag keys, cost categories, or any two group by types.

Valid values for the DIMENSION type are AZ, INSTANCE_TYPE, LEGAL_ENTITY_NAME, INVOICING_ENTITY, LINKED_ACCOUNT, OPERATION, PLATFORM, PURCHASE_TYPE, SERVICE, TENANCY, RECORD_TYPE, and USAGE_TYPE.

When you group by the TAG type and include a valid tag key, you get all tag values, including empty strings.

As per the specified dimensions, you may customize your use case.

For information about filter limitations, see Quotas and restrictions in the Billing and Cost Management User Guide [1].

GetCostAndUsage comes under non-mutatiting. and it's limit is specified in article [2]:

References:

[1] https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-limits.html

[2] https://docs.aws.amazon.com/AWSEC2/latest/APIReference/throttling.html#throttling-limits

AWS
支援工程師
已回答 4 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南