Quellcode durchsuchen

Fix for RHSSO crosszone-load-balancing option duplicated

No need to tag.
Fred Damstra [afs macbook] vor 2 Jahren
Ursprung
Commit
ce92dfd31c
1 geänderte Dateien mit 5 neuen und 7 gelöschten Zeilen
  1. 5 7
      base/rhsso/nlb.tf

+ 5 - 7
base/rhsso/nlb.tf

@@ -16,20 +16,18 @@ module "public_dns_record" {
 }
 
 resource "aws_lb" "external" {
-  name               = "rhsso-external-nlb"
-  load_balancer_type = "network"
-  internal           = false # tfsec:ignore:aws-elb-alb-not-public
-  subnets            = var.public_subnets
+  name                             = "rhsso-external-nlb"
+  load_balancer_type               = "network"
+  internal                         = false # tfsec:ignore:aws-elb-alb-not-public
+  subnets                          = var.public_subnets
   enable_cross_zone_load_balancing = true
+  idle_timeout                     = 300
 
   access_logs {
     bucket  = "xdr-elb-${var.environment}"
     enabled = true
   }
 
-  enable_cross_zone_load_balancing = true
-  idle_timeout                     = 300
-
   tags = merge(local.standard_tags, var.tags)
 }