Skip to content

Commit 1d11afa

Browse files
committed
feat: add enable_waf_fail_open flag to alb
1 parent 416c1d4 commit 1d11afa

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ resource "aws_lb" "default" {
122122
preserve_host_header = var.preserve_host_header
123123
xff_header_processing_mode = var.xff_header_processing_mode
124124
client_keep_alive = var.client_keep_alive
125+
enable_waf_fail_open = var.enable_waf_fail_open
125126

126127
access_logs {
127128
bucket = try(element(compact([var.access_logs_s3_bucket_id, module.access_logs.bucket_id]), 0), "")

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,3 +432,9 @@ variable "reserved_capacity_units" {
432432
default = null
433433
description = "The number of capacity units reserved for the load balancer"
434434
}
435+
436+
variable "enable_waf_fail_open" {
437+
type = bool
438+
default = false
439+
description = "Enable forwarding requests to the targets when commmunication between the ALB and its WAF integration fails."
440+
}

0 commit comments

Comments
 (0)