resource "aws_lb" "ampdap-aspera2-nlb" {
  enable_cross_zone_load_balancing = true
  enable_deletion_protection       = true
  internal                         = false
  ip_address_type                  = "ipv4"
  load_balancer_type               = "network"
  name                             = "ampdap-aspera2-nlb"
  security_groups                  = []
  subnets = [
    "subnet-0b4c2a37c99b164f5",
    "subnet-0ec040e707e33adf8",
  ]
  tags = {
    "Owner" = "Digital Archive"
  }
  tags_all = {
    "Owner" = "Digital Archive"
  }

  access_logs {
    bucket  = "sme-amp-prod-use1-alb-logs"
    enabled = true
    prefix  = "ampdap-aspera2-nlb"
  }

  subnet_mapping {
    subnet_id = "subnet-0b4c2a37c99b164f5"
  }
  subnet_mapping {
    subnet_id = "subnet-0ec040e707e33adf8"
  }
}

