Skip to content

Commit 2b772a3

Browse files
mjreed-wbdjritsema
authored andcommitted
fix lifecycle prefix (#26)
* fix lifecycle prefix * makes expiration days variable
1 parent 601e383 commit 2b772a3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

env/dev/lb.tf

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ variable "health_check_matcher" {
3232
default = "200"
3333
}
3434

35+
variable "lb_access_logs_expiration_days" {
36+
default = "3"
37+
}
38+
3539
resource "aws_alb" "main" {
3640
name = "${var.app}-${var.environment}"
3741

@@ -81,10 +85,10 @@ resource "aws_s3_bucket" "lb_access_logs" {
8185
id = "cleanup"
8286
enabled = true
8387
abort_incomplete_multipart_upload_days = 1
84-
prefix = "/"
88+
prefix = ""
8589

8690
expiration {
87-
days = 3
91+
days = "${var.lb_access_logs_expiration_days}"
8892
}
8993
}
9094

0 commit comments

Comments
 (0)