resource "aws_lb" "grpsp2-dbspbmg1-read-pgb01-nlb" {
  enable_cross_zone_load_balancing = true
  enable_deletion_protection       = true
  internal                         = false
  ip_address_type                  = "ipv4"
  load_balancer_type               = "network"
  name                             = "grpsp2-dbspbmg1-read-pgb01-nlb"
  security_groups                  = []
  tags = {
    "Business-Unit" = "GRPS"
    "Environment"   = "Prod"
    "Project-Code"  = "2000-0497G"
    "Project-Name"  = "GRPS"
  }
  tags_all = {
    "Business-Unit" = "GRPS"
    "Environment"   = "Prod"
    "Project-Code"  = "2000-0497G"
    "Project-Name"  = "GRPS"
  }

  access_logs {
    bucket  = "sme-labelcopy-schedule-prod-elb-euc1-logs"
    enabled = true
    prefix  = "grpsp2-dbspbmg1-read-pgb01-nlb"
  }

  subnet_mapping {
    subnet_id = "subnet-0a247e92532d75486"
  }
  subnet_mapping {
    subnet_id = "subnet-0baf0da95450bf8cf"
  }
}

resource "aws_lb" "symmetricds01-prod-int-alb" {
  desync_mitigation_mode                      = "defensive"
  drop_invalid_header_fields                  = true
  enable_cross_zone_load_balancing            = true
  enable_deletion_protection                  = true
  enable_http2                                = true
  enable_tls_version_and_cipher_suite_headers = true
  enable_waf_fail_open                        = true
  enable_xff_client_port                      = true
  idle_timeout                                = 60
  internal                                    = true
  ip_address_type                             = "ipv4"
  load_balancer_type                          = "application"
  name                                        = "symmetricds01-prod-int-alb"
  preserve_host_header                        = false
  security_groups = [
    "sg-0eaaca298bcca5b5e",
  ]
  tags = {
    "Business-Unit" = "GRPS"
    "Environment"   = "Prod"
    "Project-Code"  = "2000-0497G"
    "Project-Name"  = "GRPS"
  }
  tags_all = {
    "Business-Unit" = "GRPS"
    "Environment"   = "Prod"
    "Project-Code"  = "2000-0497G"
    "Project-Name"  = "GRPS"
  }
  xff_header_processing_mode = "append"

  access_logs {
    bucket  = "sme-core-cloud-compliance-centralized-lb-euc1-logs"
    enabled = true
    prefix  = "sme-label-copy-schedule-prod"
  }

  subnet_mapping {
    subnet_id = "subnet-0a247e92532d75486"
  }
  subnet_mapping {
    subnet_id = "subnet-0baf0da95450bf8cf"
  }
}
