浏览代码

Minor Fix for ELB Bucket 4.0 update in C2 Account Standards

To be tagged v4.0.4
Fred Damstra [afs macbook] 3 年之前
父节点
当前提交
ef2b25aa22
共有 1 个文件被更改,包括 10 次插入11 次删除
  1. 10 11
      base/account_standards_c2/elb_bucket.tf

+ 10 - 11
base/account_standards_c2/elb_bucket.tf

@@ -5,17 +5,16 @@ module "elb_logging_logging_bucket" {
   source = "../../thirdparty/terraform-aws-s3logging-bucket"
 
   bucket_name = "xdr-elb-${var.environment}-access-logs"
-  #Discussed w/ FRED ON THIS MODULE / needs to be replaced with aws_s3_bucket_lifecycle_configuration
-  #lifecycle_rules = [
-  #  {
-  #    id                            = "expire-old-logs"
-  #    enabled                       = true
-  #    prefix                        = ""
-  #    expiration                    = 30
-  #    noncurrent_version_expiration = 30
-  #    abort_incomplete_multipart_upload_days = 7
-  #  }
-  #]
+  lifecycle_rules = [
+    {
+      id                            = "expire-old-logs"
+      enabled                       = true
+      prefix                        = ""
+      expiration                    = 30
+      noncurrent_version_expiration = 30
+      abort_incomplete_multipart_upload_days = 7
+    }
+  ]
   tags = merge(var.standard_tags, var.tags, { "Note" = "ELB Logging Does Not Support SSE-KMS. Only SSE-S3 is supported." } )
   versioning_enabled = true
 }