Cloudfront cost by distribution

0

I would like to know how can I get the billing of AW Cloudfront by distribution ? With the new billing console, I can't get the old CSV by ressource for the previous month.

3개 답변
1

Have a look at the Cost And Usage Report which allows you to publish your cost and billing data to an Amazon S3 bucket , which you can later query , using Athena . The following example query will return the CloudFront cost , by distribution , including usage (TBs) :

select
  "line_item_usage_type",
  "line_item_resource_id" as distribution,
  "product_from_location",
  "product_to_location",
  sum("line_item_usage_amount")/1024 as "Usage (TBs)",
  sum("line_item_unblended_cost") as cost
from DATABASE.TABLE
where
  "line_item_product_code" = 'AmazonCloudFront'
group by
  "line_item_usage_type",
  "line_item_resource_id",
  "product_from_location",
  "product_to_location"
order by
  sum("line_item_unblended_cost") des

In addition , you may look at the Query Library for additional queries that you could use (CloudFront or other services). All reports can be downloaded as a CSV file.

AWS
dotanp
답변함 2년 전
0

You can view this with a nice visualization that is also customizable by deploying the Cloud Intelligence Dashboards.

Have a look at an example, click on the Data Transfer Summary tab, and scroll all the way to the bottom to see the CloudFront section where you can find visualizations by distribution.

Click here to deploy the CIDs into your own account.

AWS
답변함 2년 전
0

Take a look at Cost Explorer for this exercise. Applying a unique "Name" tag to each CloudFront distribution, and activating that "Name" tag using these instructions would provide visibility into costs per CloudFront Distribution. Once tagged, the cost data would only be moving forward, not retroactive.

profile pictureAWS
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠