File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,13 @@ resource "aws_cloudfront_distribution" "this" {
13
13
aliases = [var . target_domain ]
14
14
price_class = " PriceClass_100"
15
15
http_version = " http2"
16
+
17
+ logging_config {
18
+ include_cookies = false
19
+ bucket = " logs.s3.amazonaws.com"
20
+ prefix = " myprefix"
21
+ }
22
+
16
23
17
24
default_cache_behavior {
18
25
target_origin_id = aws_s3_bucket. this . id
@@ -44,7 +51,15 @@ resource "aws_cloudfront_distribution" "this" {
44
51
cloudfront_default_certificate = false
45
52
acm_certificate_arn = aws_acm_certificate. cert . arn
46
53
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"
48
61
62
+ tags = {
63
+ Name = " logs"
49
64
}
50
65
}
You can’t perform that action at this time.
0 commit comments