resource "aws_lb" "k8s-globalds-gw-47a6ed5d72" {
  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-47a6ed5d72"
  preserve_host_header                        = false
  security_groups = [
    "sg-0c22ca18a165610c8",
    "sg-0f9d891cec2be3c40",
  ]
  subnets = [
    "subnet-04fc0ff2de7d4d6a4",
    "subnet-0b84b1612acc05bcd",
  ]
  tags = {
    "Name"                     = "gdsu-gw-alb"
    "elbv2.k8s.aws/cluster"    = "global-ds-uat"
    "ingress.k8s.aws/resource" = "LoadBalancer"
    "ingress.k8s.aws/stack"    = "global-ds/gw"
    SERVER_TYPE                = "ELB"
    Terraform                  = "True"
    Business-Unit              = "Global-DS"
    Owner                      = "Dave Wenger"
    Project-Code               = "SME-GLOBAL-DS"
    Project-Name               = "Global-DS-MSK"
    OPS                        = "STND"
    DATA                       = "NORMAL"
    Environment                = "DEV"
    CLOPS_APPROVED             = "True"
  }

  xff_header_processing_mode = "append"

  access_logs {
    bucket  = "sme-global-ds-dev-elb-euc1-logs"
    enabled = true
    prefix  = "k8s-globalds-gw-47a6ed5d72"
  }


}

resource "aws_lb" "global-ds-uat-gw-EXT" {
  #checkov:skip=CKV2_AWS_28: Ensure public facing ALB are protected by WAF
  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                                    = false
  ip_address_type                             = "ipv4"
  load_balancer_type                          = "application"
  name                                        = "global-ds-uat-gw-EXT"
  preserve_host_header                        = false
  security_groups = [
    "sg-0de59d60921266254",
  ]
  subnets = [
    "subnet-071db630e75ab535d",
    "subnet-0e8f56e10a39ba59e",
  ]
  tags                       = {}
  tags_all                   = {}
  xff_header_processing_mode = "append"

  access_logs {
    bucket  = "sme-core-cloud-compliance-centralized-lb-euc1-logs"
    enabled = true
    prefix  = "sme-global-data-systems-dev"
  }


}

