Skip to content

Commit 0120ba3

Browse files
committed
Connection logs only available from AWS v5
1 parent 5962475 commit 0120ba3

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

modules/alb/main.tf

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,6 @@ resource "aws_alb" "this" {
22
name = join("-", concat(var.namespace, [var.name]))
33
security_groups = [aws_security_group.this.id]
44

5-
dynamic "connection_logs" {
6-
for_each = var.enable_connection_logs ? [1] : []
7-
content {
8-
bucket = var.s3_logs_bucket_name != "" ? var.s3_logs_bucket_name : aws_s3_bucket.lb_logs[0].id
9-
prefix = "connectionlogs"
10-
enabled = true
11-
}
12-
}
13-
145
dynamic "access_logs" {
156
for_each = var.enable_access_logs ? [1] : []
167
content {

modules/alb/variables.tf

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@ variable "enable_access_logs" {
88
default = false
99
description = "Enable or disable ALB access logs. If set to true, logs will be stored in an S3 bucket."
1010
}
11-
12-
variable "enable_connection_logs" {
13-
type = bool
14-
default = false
15-
description = "Enable or disable ALB connection logs. If set to true, logs will be stored in an S3 bucket."
16-
}
17-
1811
variable "name" {
1912
description = "Name for this load balancer"
2013
type = string

0 commit comments

Comments
 (0)