|
@@ -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
|
|
|
}
|