Skip to main content

Use Case for CloudFront Distribution Pricing Class

  1. Configure CloudFront Distribution Pricing Class
  2. Use Case for CloudFront Distribution Pricing Class
  3. Triage Guides by Violation Type
    1. Triage CloudFront Distribution Pricing Class PRICING_CLASS_NOT_OPTIMIZED

CloudFront Distribution Pricing Class

Why Use This Policy?

Ensuring that CloudFront distributions have optimized pricing classes can significantly reduce delivery costs. By excluding more expensive edge locations from Amazon CloudFront distribution, organizations can optimize costs and make more efficient use of their resources.

Pros:

  • Cost optimization by excluding costly edge locations.
  • Simplifies cost management by standardizing the use of specific pricing classes.

Cons:

  • Requires regular review to ensure that the pricing class still meets business needs.

How the Policy Works

This policy checks the priceClass of given CloudFront distributions. If the priceClass is set to 'PriceClass_All', it flags the distribution as not optimized for cost.

Configuration Variables

The following variables can be configured for this policy:

  • resourceUrn (required): The Amazon Resource Name (ARN) of the CloudFront distribution to check.

Violation Types

  • PRICING_CLASS_NOT_OPTIMIZED: The pricing class is set to 'PriceClass_All', which means it is utilizing the most expensive edge locations.