Query to get cost usage per API request and identify the caller information

0

Is there a mechanism to identify the cost associated to every API call within a given account and track the source of the given API call?

  • Is there a way I can link both these datasets? I am trying to find if there is an efficient way you can link a cloudtrail log associated to API call to its billing usage.

AWS
asked 10 months ago365 views
1 Answer
0

The easiest solution to view the cost per API is probably to use AWS Cost Explorer [1]. You can then group the results by API calls. You can also use AWS CUR [2]. To track down the source, you will need to use AWS CloudTrail [3].

[1] https://www.wellarchitectedlabs.com/cost/100_labs/100_5_cost_visualization/1_cost_usage_service/

[2] https://docs.aws.amazon.com/cur/latest/userguide/what-is-cur.html

[3] https://aws.amazon.com/cloudtrail/

profile pictureAWS
EXPERT
answered 10 months ago
  • Is there a way I can link both these datasets? I am trying to find if there is an efficient way you can link a cloudtrail log associated to API call to its billing usage.

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