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 a36fa34 commit eaef858
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
12 changes: 12 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,18 @@ resource "aws_s3_bucket" "s3_default" {
}
}

logging {
target_bucket = var.target_bucket
target_prefix = var.target_log_prefix
}
server_side_encryption_configuration {
rule {
bucket_key_enabled = false
apply_server_side_encryption_by_default {
sse_algorithm = var.sse_algorithm
}
}
}
tags = module.labels.tags

}
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ variable "target_prefix" {
description = "To specify a key prefix for log objects."
}

variable "target_log_prefix" {
type = string
default = ""
description = "To specify a key prefix for log objects."
}

variable "sse_algorithm" {
type = string
default = "AES256"
Expand Down

0 comments on commit eaef858

Please sign in to comment.