This product is not supported for your selected Datadog site. ().

Metadata

Id: df58dd45-8009-43c2-90f7-c90eb9d53ed9

Cloud Provider: Nifcloud

Platform: Terraform

Severity: Low

Category: Networking and Firewall

Learn More

Description

The instance uses the common private network. The nifcloud_instance resource’s network_interface.network_id is set to net-COMMON_PRIVATE. The instance should use a private LAN to isolate the private-side network from the shared network.

Compliant Code Examples

resource "nifcloud_instance" "negative" {
  image_id        = data.nifcloud_image.ubuntu.id
  security_group  = nifcloud_security_group.example.group_name
  network_interface {
    network_id = nifcloud_private_lan.main.id
  }
}

Non-Compliant Code Examples

resource "nifcloud_instance" "positive" {
  image_id        = data.nifcloud_image.ubuntu.id
  security_group  = nifcloud_security_group.example.group_name
  network_interface {
    network_id = "net-COMMON_GLOBAL"
  }
  network_interface {
    network_id = "net-COMMON_PRIVATE"
  }
}
resource "nifcloud_instance" "positive" {
  image_id        = data.nifcloud_image.ubuntu.id
  security_group  = nifcloud_security_group.example.group_name
  network_interface {
    network_id = "net-COMMON_PRIVATE"
  }
}