We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 601e383 commit 2b772a3Copy full SHA for 2b772a3
env/dev/lb.tf
@@ -32,6 +32,10 @@ variable "health_check_matcher" {
32
default = "200"
33
}
34
35
+variable "lb_access_logs_expiration_days" {
36
+ default = "3"
37
+}
38
+
39
resource "aws_alb" "main" {
40
name = "${var.app}-${var.environment}"
41
@@ -81,10 +85,10 @@ resource "aws_s3_bucket" "lb_access_logs" {
81
85
id = "cleanup"
82
86
enabled = true
83
87
abort_incomplete_multipart_upload_days = 1
84
- prefix = "/"
88
+ prefix = ""
89
90
expiration {
- days = 3
91
+ days = "${var.lb_access_logs_expiration_days}"
92
93
94
0 commit comments