Skip to content

Commit

Permalink
feat: Add load_balancing_anomaly_mitigation to aws_lb_target_group
Browse files Browse the repository at this point in the history
  • Loading branch information
KofoworolaOgunleye committed Feb 7, 2024
1 parent 40d92a8 commit d75f37b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion examples/complete-alb/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,9 @@ module "alb" {
protocol = "HTTP"
port = 80
target_type = "instance"
deregistration_delay = 10
deregistration_delay = 1
load_balancing_algorithm_type = "weighted_random"
load_balancing_anomaly_mitigation = "on"
load_balancing_cross_zone_enabled = false

health_check = {
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ resource "aws_lb_target_group" "this" {
ip_address_type = try(each.value.ip_address_type, null)
lambda_multi_value_headers_enabled = try(each.value.lambda_multi_value_headers_enabled, null)
load_balancing_algorithm_type = try(each.value.load_balancing_algorithm_type, null)
load_balancing_anomaly_mitigation = try(each.value.load_balancing_anomaly_mitigation, null)
load_balancing_cross_zone_enabled = try(each.value.load_balancing_cross_zone_enabled, null)
name = try(each.value.name, null)
name_prefix = try(each.value.name_prefix, null)
Expand All @@ -487,7 +488,6 @@ resource "aws_lb_target_group" "this" {
protocol_version = try(each.value.protocol_version, null)
proxy_protocol_v2 = try(each.value.proxy_protocol_v2, null)
slow_start = try(each.value.slow_start, null)

dynamic "stickiness" {
for_each = try([each.value.stickiness], [])

Expand Down

0 comments on commit d75f37b

Please sign in to comment.