Files
dsk-iac/spot_221207/terraform/02_nlb.tf
2022-12-08 22:26:48 +09:00

20 lines
446 B
HCL

resource "aws_alb" "nlb-spot-kr-ingress" {
name = "nlb-spot-kr-ingress"
internal = false
load_balancer_type = "network"
subnet_mapping {
subnet_id = "${var.Public_Subnet_ID_1}"
}
subnet_mapping {
subnet_id = "${var.Public_Subnet_ID_2}"
}
subnet_mapping {
subnet_id = "${var.Public_Subnet_ID_3}"
}
enable_deletion_protection = false
tags = {
Environment = "nlb-spot-kr-ingress"
}
}