resource "aws_lb" "ampdad-aspera02-nlb" {
  #checkov:skip=CKV_AWS_152: Ensure that Load Balancer (Network/Gateway) has cross-zone load balancing enabled
  enable_cross_zone_load_balancing = false
  enable_deletion_protection       = true
  internal                         = false
  ip_address_type                  = "ipv4"
  load_balancer_type               = "network"
  name                             = "ampdad-aspera02-nlb"
  security_groups                  = []
  subnets = [
    "subnet-05c45da01c1648f71",
    "subnet-08ecf11e742dfe0bd",
  ]
  tags = {
    "Project-Code" = "SME-AMP"
    "Project-Name" = "AMP"
  }
  tags_all = {
    "Project-Code" = "SME-AMP"
    "Project-Name" = "AMP"
  }

  access_logs {
    bucket  = "amp-dev-elb-logs"
    enabled = true
    prefix  = "ampdad-aspera02-nlb"
  }

  subnet_mapping {
    subnet_id = "subnet-05c45da01c1648f71"
  }
  subnet_mapping {
    subnet_id = "subnet-08ecf11e742dfe0bd"
  }
}

resource "aws_lb" "ampdad-aspera02-int-nlb" {
  #checkov:skip=CKV_AWS_152: Ensure that Load Balancer (Network/Gateway) has cross-zone load balancing enabled
  enable_cross_zone_load_balancing = false
  enable_deletion_protection       = true
  internal                         = true
  ip_address_type                  = "ipv4"
  load_balancer_type               = "network"
  name                             = "ampdad-aspera02-int-nlb"
  security_groups                  = ["sg-0a203d9b3b652fd7c"]
  subnets = [
    "subnet-09b0efb1258e0171b",
    "subnet-0ab97583b96611bd8",
  ]
  tags = {
    "Project-Code" = "SME-AMP"
    "Project-Name" = "AMP"
  }
  tags_all = {
    "Project-Code" = "SME-AMP"
    "Project-Name" = "AMP"
  }

  access_logs {
    bucket  = "amp-dev-elb-logs"
    enabled = true
    prefix  = "ampdad-aspera02-int-nlb"
  }

}