Skip to content

Commit f70f988

Browse files
Update cloudfront.tf
1 parent c13d586 commit f70f988

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

cloudfront.tf

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ resource "aws_cloudfront_distribution" "this" {
1313
aliases = [var.target_domain]
1414
price_class = "PriceClass_100"
1515
http_version = "http2"
16+
17+
logging_config {
18+
include_cookies = false
19+
bucket = "logs.s3.amazonaws.com"
20+
prefix = "myprefix"
21+
}
22+
1623

1724
default_cache_behavior {
1825
target_origin_id = aws_s3_bucket.this.id
@@ -44,7 +51,15 @@ resource "aws_cloudfront_distribution" "this" {
4451
cloudfront_default_certificate = false
4552
acm_certificate_arn = aws_acm_certificate.cert.arn
4653
ssl_support_method = "sni-only"
47-
minimum_protocol_version = "TLSv1.1_2016"
54+
minimum_protocol_version = "TLSv1.2_2019"
55+
56+
}
57+
}
58+
59+
resource "aws_s3_bucket" "this" {
60+
bucket = "logs"
4861

62+
tags = {
63+
Name = "logs"
4964
}
5065
}

0 commit comments

Comments
 (0)