CRITICAL
Source
Trivy
ID
AVD-NIF-0018

Missing security group for vpnGateway.

Need to add a security group to your vpnGateway.

Impact

A security group controls the traffic that is allowed to reach and leave the resources that it is associated with.

Follow the appropriate remediation steps below to resolve the issue.

Add security group for all vpnGateways

1
2
3
4
5
6
7
8
 resource "nifcloud_vpn_gateway" "good_example" {
   security_group  = nifcloud_security_group.example.group_name

   network_interface {
     network_id = "net-COMMON_GLOBAL"
   }
 }