Description
An ELB interface on net-COMMON_PRIVATE uses the shared private network. Attach the interface to a dedicated Private LAN when the service needs isolation.
Potential impact
Broad access rules can leave paths open to unrelated systems on the shared network.
Remediation
Set network_id in network_interface to the destination LAN. Provider 1.18.0 replaces the ELB when its interfaces change. For a live service, create a separate replacement, verify backend routes, access rules and a healthy response, then switch traffic.
Examples
Supply the actual VIP and interface settings. Both excerpts use HTTP on port 80. Configure TLS separately where the service requires it.
Before
hcl
resource "nifcloud_elb" "example" {
availability_zone = "east-11"
instance_port = 80
protocol = "HTTP"
lb_port = 80
network_interface {
network_id = "net-COMMON_PRIVATE"
}
}
After
hcl
resource "nifcloud_elb" "example" {
availability_zone = "east-11"
instance_port = 80
protocol = "HTTP"
lb_port = 80
network_interface {
network_id = nifcloud_private_lan.main.id
}
}