이 제품은 선택한 Datadog 사이트에서 지원되지 않습니다. ().
이 페이지는 아직 한국어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우 언제든지 연락주시기 바랍니다.

Metadata

Id: terraform-nifcloud-router-has-common-private

Provider: Nifcloud

Platform: Terraform

Severity: Low

Category: Networking and Firewall

Learn More

Description

The nifcloud_router is configured to use the common private network (net-COMMON_PRIVATE). This rule detects nifcloud_router resources where network_interface[_].network_id or network_interface.network_id is set to net-COMMON_PRIVATE. The router should use a dedicated private LAN to isolate the private-side network from the shared network.

Compliant Code Examples

resource "nifcloud_router" "negative" {
  security_group  = nifcloud_security_group.example.group_name

  network_interface {
    network_id = nifcloud_private_lan.main.id
  }
}

Non-Compliant Code Examples

resource "nifcloud_router" "positive" {
  security_group  = nifcloud_security_group.example.group_name

  network_interface {
    network_id = "net-COMMON_PRIVATE"
  }
}
resource "nifcloud_router" "positive" {
  security_group  = nifcloud_security_group.example.group_name

  network_interface {
    network_id = "net-COMMON_GLOBAL"
  }

  network_interface {
    network_id = "net-COMMON_PRIVATE"
  }
}