resource "aws_lb" "aas-prod-aspera1-nlb" {
  enable_cross_zone_load_balancing = true
  enable_deletion_protection       = true
  internal                         = false
  ip_address_type                  = "ipv4"
  load_balancer_type               = "network"
  name                             = "aas-prod-aspera1-nlb"
  security_groups                  = []
  subnets = [
    "subnet-0895a0e22aa4ec5cc",
    "subnet-0a404aac30a12264a",
  ]
  tags     = {}
  tags_all = {}

  access_logs {
    bucket  = "sme-amp-prod-elb-logs-eu-central-1"
    enabled = true
    prefix  = "aas-prod-aspera1-nlb"
  }

  subnet_mapping {
    subnet_id = "subnet-0895a0e22aa4ec5cc"
  }
  subnet_mapping {
    subnet_id = "subnet-0a404aac30a12264a"
  }
}

resource "aws_lb" "aasp2-aspera-console2-int-lb" {
  desync_mitigation_mode                      = "defensive"
  drop_invalid_header_fields                  = false
  enable_cross_zone_load_balancing            = true
  enable_deletion_protection                  = true
  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                                        = "aasp2-aspera-console2-int-lb"
  preserve_host_header                        = false
  security_groups = [
    "sg-0e90606cd43204739",
  ]
  subnets = [
    "subnet-0080604b4fb52d359",
    "subnet-0ff4e20d7cd590b0b",
  ]
  tags                       = {}
  tags_all                   = {}
  xff_header_processing_mode = "append"

  access_logs {
    bucket  = "sme-amp-prod-elb-logs-eu-central-1"
    enabled = true
    prefix  = "aasp2-aspera-console-int-lb"
  }
}
