Skip to content

Commit

Permalink
fix changes
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolnagpal committed Sep 6, 2021
1 parent 9b6fcb1 commit f5841b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ resource "aws_s3_bucket" "s3_default" {
}

logging {
target_bucket = var.target_bucket
target_bucket = var.target_log_bucket
target_prefix = var.target_log_prefix
}
server_side_encryption_configuration {
Expand Down Expand Up @@ -176,7 +176,7 @@ resource "aws_s3_bucket" "s3_logging" {

server_side_encryption_configuration {
rule {
bucket_key_enabled = true
bucket_key_enabled = false
apply_server_side_encryption_by_default {
sse_algorithm = var.sse_algorithm
}
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ variable "target_bucket" {
description = "The name of the bucket that will receive the log objects."
}

variable "target_log_bucket" {
type = string
default = ""
description = "The name of the bucket that will receive the log objects."
}

variable "target_prefix" {
type = string
default = ""
Expand Down

0 comments on commit f5841b0

Please sign in to comment.