File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ resource "aws_s3_bucket" "s3_default" {
67
67
}
68
68
69
69
logging {
70
- target_bucket = var. target_bucket
70
+ target_bucket = var. target_log_bucket
71
71
target_prefix = var. target_log_prefix
72
72
}
73
73
server_side_encryption_configuration {
@@ -176,7 +176,7 @@ resource "aws_s3_bucket" "s3_logging" {
176
176
177
177
server_side_encryption_configuration {
178
178
rule {
179
- bucket_key_enabled = true
179
+ bucket_key_enabled = false
180
180
apply_server_side_encryption_by_default {
181
181
sse_algorithm = var. sse_algorithm
182
182
}
Original file line number Diff line number Diff line change @@ -110,6 +110,12 @@ variable "target_bucket" {
110
110
description = " The name of the bucket that will receive the log objects."
111
111
}
112
112
113
+ variable "target_log_bucket" {
114
+ type = string
115
+ default = " "
116
+ description = " The name of the bucket that will receive the log objects."
117
+ }
118
+
113
119
variable "target_prefix" {
114
120
type = string
115
121
default = " "
You can’t perform that action at this time.
0 commit comments