From 76918dab90a8aeeff907681770c63c26377734b3 Mon Sep 17 00:00:00 2001 From: Anmol Nagpal Date: Mon, 6 Sep 2021 21:13:40 +0530 Subject: [PATCH] fix changes --- main.tf | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/main.tf b/main.tf index 153acc7..908fbce 100644 --- a/main.tf +++ b/main.tf @@ -30,6 +30,19 @@ resource "aws_s3_bucket" "s3_default" { enabled = var.versioning } + logging { + target_bucket = var.target_bucket + target_prefix = var.target_prefix + } + server_side_encryption_configuration { + rule { + bucket_key_enabled = false + apply_server_side_encryption_by_default { + sse_algorithm = var.sse_algorithm + } + } + } + lifecycle_rule { id = "transition-to-infrequent-access-storage" enabled = var.lifecycle_infrequent_storage_transition_enabled