CRITICAL
Source
Trivy
ID
AVD-NIF-0004

Missing security group for instance.

Need to add a security group to your instance.

Impact

Follow the appropriate remediation steps below to resolve the issue.

Add security group for all instances

1
2
3
4
5
6
7
8
resource "nifcloud_instance" "good_example" {
  image_id       = data.nifcloud_image.ubuntu.id
  security_group = nifcloud_security_group.example.group_name

  network_interface {
    network_id = "net-COMMON_GLOBAL"
  }
}