Amazon billing and usage reports for CloudFront - Amazon CloudFront
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Amazon billing and usage reports for CloudFront

Amazon provides two usage reports for CloudFront:

  • The Amazon billing report is a high-level view of all activity for Amazon Web Services that you're using, including CloudFront.

  • The Amazon usage report is a summary of activity for a specific service, aggregated by hour, day, or month. It also includes usage charts that provide a graphical representation of your CloudFront usage.

Note

Like other Amazon Web Services, CloudFront charges you for only what you use. For more information, see CloudFront pricing.

View the Amazon billing report for CloudFront

You can view a summary of your Amazon usage and charges, listed by service, on the Bills page in the Amazon Billing and Cost Management console.

To view the Amazon billing report
  1. Sign in to the Amazon Web Services Management Console and open the Amazon Billing console at https://console.amazonaws.cn/billing/.

  2. In the navigation pane, choose Bills.

  3. Choose a Billing period (for example, August 2023).

  4. On the Charges by service tab, choose CloudFront, and then expand Global or the Amazon Web Services Region name.

  5. To download a detailed billing report in CSV format, choose Download all to CSV.

For more information about your Amazon bill, see Viewing your bill in the Amazon Billing User Guide.

The billing report includes the following values that apply to CloudFront:

  • ProductCodeAmazonCloudFront

  • UsageType – One of the following values:

    • A code that identifies the type of data transfer

    • Invalidations

    • Executions-CloudFrontFunctions

    • KeyValueStore-APIOperations

    • KeyValueStore-EdgeReads

    • RealTimeLog-KinesisDataStream

    • SSL-Cert-Custom

  • ItemDescription – A description of the billing rate for the UsageType.

  • UsageStart Date and UsageEndDate – The day that the usage applies to, in Coordinated Universal Time (UTC).

  • UsageQuantity – One of the following values:

    • The number of requests during the specified time period

    • The amount of data transferred in gigabytes

    • The number of objects invalidated

    • The sum of the prorated months that you had SSL certificates associated with enabled CloudFront distributions. For example, if you have one certificate associated with an enabled distribution for an entire month and another certificate associated with an enabled distribution for half of the month, this value will be 1.5.

View the Amazon usage report for CloudFront

Amazon provides a CloudFront usage report that is more detailed than the billing report but less detailed than CloudFront access logs. The usage report provides aggregate usage data by hour, day, or month, and it lists operations by region and usage type, such as data transferred out of the Australia region.

To view the Amazon usage report
  1. Sign in to the Amazon Web Services Management Console and open the Amazon Billing console at https://console.amazonaws.cn/billing/.

  2. In the navigation pane, choose Cost & Reports.

  3. Under the Amazon Usage Report section, choose Create a Usage Report.

  4. On the Download usage report page, under Services, choose Amazon CloudFront

  5. Choose the Usage type.

  6. Choose the Operation.

  7. Choose the Time period for the report. If you choose Custom date range, you need to specify the Date range for the report manually.

  8. Under Report granularity, choose Hourly, Daily, or Monthly.

  9. Choose Download, and then choose XML Report or CSV Report.

For more information about the Amazon usage report, see Amazon Usage Report in the Amazon Data Exports User Guide.

The CloudFront usage report includes the following values:

  • ServiceAmazonCloudFront

  • Operation – HTTP method. Values include DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT.

  • UsageType – One of the following values:

    • A code that identifies the type of data transfer

    • Invalidations

    • Executions-CloudFrontFunctions

    • KeyValueStore-APIOperations

    • KeyValueStore-EdgeReads

    • RealTimeLog-KinesisDataStream

    • SSL-Cert-Custom

  • Resource – Either the ID of the CloudFront distribution associated with the usage or the certificate ID of an SSL certificate that you have associated with a CloudFront distribution.

  • StartTime/EndTime – The day that the usage applies to, in Coordinated Universal Time (UTC).

  • UsageValue – 1) The number of requests during the specified time period or 2)the amount of data transferred in bytes.

If you’re using Amazon S3 as the origin for CloudFront, consider running the usage report for Amazon S3, too. However, if you use Amazon S3 for purposes other than as an origin for your CloudFront distributions, it might not be clear what portion applies to your CloudFront usage.

Tip

For detailed information about every request that CloudFront receives for your objects, turn on CloudFront access logs for your distribution. For more information, see Configure and use standard logs (access logs).

For more information about understanding the CloudFront charges and usage types on your reports, see Interpret your Amazon bill and usage reports for CloudFront.