Skip to content

Commit 8b7909e

Browse files
committed
Move priceclass to var
1 parent cf5555d commit 8b7909e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

cloudfront.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ resource "aws_cloudfront_distribution" "self" {
5252
}
5353
}
5454

55-
price_class = "PriceClass_200"
55+
price_class = var.cloudfront_priceclass
5656

5757
viewer_certificate {
5858
acm_certificate_arn = aws_acm_certificate.cloudfront.arn

input.tf

+5
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,9 @@ variable "secondary_domain_names" {
1313

1414
variable "request_function_path" {
1515
type = string
16+
}
17+
18+
variable "cloudfront_priceclass" {
19+
type = string
20+
default = "PriceClass_200"
1621
}

0 commit comments

Comments
 (0)