Skip to content

Commit f5841b0

Browse files
committed
fix changes
1 parent 9b6fcb1 commit f5841b0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ resource "aws_s3_bucket" "s3_default" {
6767
}
6868

6969
logging {
70-
target_bucket = var.target_bucket
70+
target_bucket = var.target_log_bucket
7171
target_prefix = var.target_log_prefix
7272
}
7373
server_side_encryption_configuration {
@@ -176,7 +176,7 @@ resource "aws_s3_bucket" "s3_logging" {
176176

177177
server_side_encryption_configuration {
178178
rule {
179-
bucket_key_enabled = true
179+
bucket_key_enabled = false
180180
apply_server_side_encryption_by_default {
181181
sse_algorithm = var.sse_algorithm
182182
}

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ variable "target_bucket" {
110110
description = "The name of the bucket that will receive the log objects."
111111
}
112112

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+
113119
variable "target_prefix" {
114120
type = string
115121
default = ""

0 commit comments

Comments
 (0)