Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ resource "aws_route53_record" "dev-dns" {

resource "aws_cloudfront_distribution" "slashdev_distribution" {
count = var.cloudfront_provision_enabled ? 1 : 0

price_class = "PriceClass_100"

origin {
connection_attempts = 3
connection_timeout = 10
Expand All @@ -88,19 +91,7 @@ resource "aws_cloudfront_distribution" "slashdev_distribution" {
allowed_methods = ["GET", "HEAD"]
cached_methods = ["GET", "HEAD"]
target_origin_id = "slashdevOrigin"
forwarded_values {
headers = [
"ETag",
"Origin",
]
query_string = false
cookies {
forward = "none"
}
}
min_ttl = 0
default_ttl = 300
max_ttl = 86400
compress = true
viewer_protocol_policy = "redirect-to-https"
}
Expand All @@ -121,7 +112,6 @@ resource "aws_cloudfront_distribution" "slashdev_distribution" {
compress = true
viewer_protocol_policy = "allow-all"
}
price_class = "PriceClass_100"
restrictions {
geo_restriction {
restriction_type = "whitelist"
Expand Down
Loading