Skip to main content

Triage CloudFront Distribution Pricing Class PRICING_CLASS_NOT_OPTIMIZED

  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

Triage Guide: CloudFront Distribution Pricing Class Optimization

Understanding: Why should I care about fixing this issue?

CloudFront distributions with 'PriceClass_All' include all possible edge locations, which means higher delivery costs. Optimizing the pricing class will exclude more expensive edge locations, reducing these costs.

Validate

  • Data Source: This policy uses the AWS CloudFront distribution configuration data.
  • Manual Retrieval:
    1. Navigate to the AWS CloudFront console.
    2. Select the distribution of interest.
    3. Check the PriceClass setting in the distribution configuration.
  • Scan Schedule: This policy runs reactively based on resource changes and does not scan on a set schedule.

Triage

  • Impact: Leaving the distribution in 'PriceClass_All' will lead to higher delivery costs.
  • Worsening Over Time: Costs will continue to be higher if not addressed.
  • Potential Remediation Downsides: Changing the pricing class may affect delivery latency or availability in some regions but should not cause service outages.

Act

  1. Review the current PriceClass setting for the distribution.
  2. Consider switching to 'PriceClass_100' or 'PriceClass_200' to exclude more expensive edge locations.
  3. Save the updated configuration in the CloudFront console.

Reflect

  • Review: If this alarm was not a good use of time, consider adjusting the policy thresholds.
  • Disable Policy: If constant changes in the pricing class are expected, disable this policy temporarily.