/*

resource "aws_lb" "mpubp-01-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 = 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                                        = "mpubp-01-alb"
  preserve_host_header                        = false
  security_groups = [
    "sg-9f9cfce4",
  ]
  subnets = [
    "subnet-0ec3f978",
    "subnet-f88fc5d2",
  ]
  tags = {
    "Business-Unit" = "Delivery-Media-Services"
    "Environment"   = "Prod"
    "Project-Code"  = "SME-2000-0306G"
    "Project-Name"  = "Delivery-Media-Services"
  }
  tags_all = {
    "Business-Unit" = "Delivery-Media-Services"
    "Environment"   = "Prod"
    "Project-Code"  = "SME-2000-0306G"
    "Project-Name"  = "Delivery-Media-Services"
  }
  xff_header_processing_mode = "append"

  access_logs {
    bucket  = "msrvp-virginia-alb-logs"
    enabled = true
    prefix  = "mpubp-01-alb"
  }

  subnet_mapping {
    subnet_id = "subnet-0ec3f978"
  }
  subnet_mapping {
    subnet_id = "subnet-f88fc5d2"
  }
}

resource "aws_lb" "msrvp-admin-01-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 = 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                                        = "msrvp-admin-01-alb"
  preserve_host_header                        = false
  security_groups = [
    "sg-7d87e706",
  ]
  subnets = [
    "subnet-0ec3f978",
    "subnet-f88fc5d2",
  ]
  tags = {
    "Business-Unit" = "Delivery-Media-Services"
    "Environment"   = "Prod"
    "Project-Code"  = "SME-2000-0306G"
    "Project-Name"  = "Delivery-Media-Services"
  }
  tags_all = {
    "Business-Unit" = "Delivery-Media-Services"
    "Environment"   = "Prod"
    "Project-Code"  = "SME-2000-0306G"
    "Project-Name"  = "Delivery-Media-Services"
  }
  xff_header_processing_mode = "append"

  access_logs {
    bucket  = "msrvp-virginia-alb-logs"
    enabled = true
    prefix  = "msrvp-admin-01-alb"
  }

  subnet_mapping {
    subnet_id = "subnet-0ec3f978"
  }
  subnet_mapping {
    subnet_id = "subnet-f88fc5d2"
  }
}

resource "aws_lb" "prsrvp-01-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 = 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                                        = "prsrvp-01-alb"
  preserve_host_header                        = false
  security_groups = [
    "sg-579fff2c",
  ]
  subnets = [
    "subnet-0ec3f978",
    "subnet-f88fc5d2",
  ]
  tags = {
    "Business-Unit" = "Delivery-Media-Services"
    "Environment"   = "Prod"
    "Project-Code"  = "SME-2000-0306G"
    "Project-Name"  = "Delivery-Media-Services"
  }
  tags_all = {
    "Business-Unit" = "Delivery-Media-Services"
    "Environment"   = "Prod"
    "Project-Code"  = "SME-2000-0306G"
    "Project-Name"  = "Delivery-Media-Services"
  }
  xff_header_processing_mode = "append"

  access_logs {
    bucket  = "msrvp-virginia-alb-logs"
    enabled = true
    prefix  = "prsrvp-01-alb"
  }

  subnet_mapping {
    subnet_id = "subnet-0ec3f978"
  }
  subnet_mapping {
    subnet_id = "subnet-f88fc5d2"
  }
}

resource "aws_lb" "k8s-msrvppro-varnishc-9f0216ec86" {
  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                                        = "k8s-msrvppro-varnishc-9f0216ec86"
  preserve_host_header                        = false
  security_groups = [
    "sg-07de7c1cf6e391d41",
  ]
  subnets = [
    "subnet-0ec3f978",
    "subnet-f88fc5d2",
  ]
  tags = {
    "Name"                     = "varnish-eks-alb-prod"
    "elbv2.k8s.aws/cluster"    = "your-cluster-name"
    "ingress.k8s.aws/resource" = "LoadBalancer"
    "ingress.k8s.aws/stack"    = "msrvp-prod/varnish-cache-ingress"
  }
  tags_all = {
    "Name"                     = "varnish-eks-alb-prod"
    "elbv2.k8s.aws/cluster"    = "your-cluster-name"
    "ingress.k8s.aws/resource" = "LoadBalancer"
    "ingress.k8s.aws/stack"    = "msrvp-prod/varnish-cache-ingress"
  }
  xff_header_processing_mode = "append"

  access_logs {
    bucket  = "msrvp-virginia-alb-logs"
    enabled = true
    prefix  = "k8s-msrvppro-varnish"
  }

  subnet_mapping {
    subnet_id = "subnet-0ec3f978"
  }
  subnet_mapping {
    subnet_id = "subnet-f88fc5d2"
  }
}

*/
