Skip to content

Commit

Permalink
Lower the Price Class for each distribution
Browse files Browse the repository at this point in the history
There are three price classes available to choose from described on the
AWS CloudFront documentation located here:

https://aws.amazon.com/cloudfront/pricing/

We have came to the conclusion, that we can safely set the class, to the
smallest and cheapest one, covering only US, CA and EU as we don't think
these will be accessed from outside of EU. Although still accessible, it
will take longer, to locate the nearest CDN server, to the country
outside of our scope.
  • Loading branch information
paroxp committed Feb 6, 2017
1 parent 5fa517c commit 99c451c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions terraform/cloudfront/cloudfront_distribution/distribution.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ resource "aws_cloudfront_distribution" "cdn_instance" {
max_ttl = 86400
}

price_class = "PriceClass_100"

restrictions {
geo_restriction {
restriction_type = "none"
Expand Down

0 comments on commit 99c451c

Please sign in to comment.