Description
Use the compute security group’s description to identify the service it protects and why the group exists.
Potential impact
A group name alone can make a group still in use look safe to remove.
Remediation
Check the description against the attached instances and the rules that actually allow traffic.
Examples
The example identifies web as the web-server group. Supply availability_zone in the real configuration.
Before
hcl
resource "nifcloud_security_group" "web" {
group_name = "web"
}
After
hcl
resource "nifcloud_security_group" "web" {
group_name = "web"
description = "Security group for web servers"
}