Remove devup cloudfront

This commit is contained in:
Alex Hyett 2021-01-14 11:01:35 +00:00
parent 445397df40
commit 618052954d

View file

@ -113,58 +113,3 @@ resource "aws_cloudfront_distribution" "root_s3_distribution" {
tags = var.common_tags
}
# Devup Cloudfront
resource "aws_cloudfront_distribution" "devup_s3_distribution" {
origin {
domain_name = aws_s3_bucket.devup_bucket.website_endpoint
origin_id = "S3-devup.${var.bucket_name}"
custom_origin_config {
http_port = 80
https_port = 443
origin_protocol_policy = "http-only"
origin_ssl_protocols = ["TLSv1", "TLSv1.1", "TLSv1.2"]
}
}
enabled = true
is_ipv6_enabled = true
default_root_object = "index.html"
aliases = ["devup.${var.domain_name}"]
default_cache_behavior {
allowed_methods = ["GET", "HEAD"]
cached_methods = ["GET", "HEAD"]
target_origin_id = "S3-devup.${var.bucket_name}"
forwarded_values {
query_string = false
cookies {
forward = "none"
}
}
viewer_protocol_policy = "redirect-to-https"
min_ttl = 31536000
default_ttl = 31536000
max_ttl = 31536000
compress = true
}
restrictions {
geo_restriction {
restriction_type = "none"
}
}
viewer_certificate {
acm_certificate_arn = aws_acm_certificate_validation.cert_validation.certificate_arn
ssl_support_method = "sni-only"
minimum_protocol_version = "TLSv1.1_2016"
}
tags = var.common_tags
}