resource "aws_lb" "k8s-globalds-gw-a25153d17c" {
  desync_mitigation_mode                      = "defensive"
  drop_invalid_header_fields                  = false
  enable_cross_zone_load_balancing            = true
  enable_deletion_protection                  = false
  enable_http2                                = true
  enable_tls_version_and_cipher_suite_headers = false
  enable_waf_fail_open                        = false
  enable_xff_client_port                      = false
  idle_timeout                                = 60
  internal                                    = true
  ip_address_type                             = "ipv4"
  load_balancer_type                          = "application"
  name                                        = "k8s-globalds-gw-a25153d17c"
  preserve_host_header                        = false
  security_groups = [
    "sg-0d3bddcbedb190ea7",
    "sg-0d4fb44cbfe3899e5",
  ]
  subnets = [
    "subnet-010048000afd13288",
    "subnet-0fc1ddba2d45866df",
  ]
  tags = {
    "Name"                     = "gdsp-gw-alb"
    "elbv2.k8s.aws/cluster"    = "global-ds-prod"
    "ingress.k8s.aws/resource" = "LoadBalancer"
    "ingress.k8s.aws/stack"    = "global-ds/gw"
  }
  tags_all = {
    "Name"                     = "gdsp-gw-alb"
    "elbv2.k8s.aws/cluster"    = "global-ds-prod"
    "ingress.k8s.aws/resource" = "LoadBalancer"
    "ingress.k8s.aws/stack"    = "global-ds/gw"
  }
  xff_header_processing_mode = "append"

  access_logs {
    bucket  = "sme-global-ds-prod-elb-euc1-logs"
    enabled = true
    prefix  = "sme-global-ds-prod-elb-euc1-logs"
  }

  subnet_mapping {
    subnet_id = "subnet-010048000afd13288"
  }
  subnet_mapping {
    subnet_id = "subnet-0fc1ddba2d45866df"
  }
}

