Skip to content

add-description-to-security-group

Explanation

Security groups should include a description for auditing purposes.

Simplifies auditing, debugging, and managing security groups.

Possible Impact

Descriptions provide context for the firewall rule reasons

Suggested Resolution

Add descriptions for all security groups

Insecure Example

The following example will fail the AVD-AWS-0099 check.

---
AWSTemplateFormatVersion: 2010-09-09
Description: Bad example of group description
Resources:
  BadSecurityGroup:
    Type: AWS::EC2::SecurityGroup
    Properties:
      SecurityGroupEgress:
      - CidrIp: 127.0.0.1/32
        IpProtocol: "-1"

Secure Example

The following example will pass the AVD-AWS-0099 check.

---
AWSTemplateFormatVersion: 2010-09-09
Description: Good example of group description
Resources:
  GoodSecurityGroup:
    Type: AWS::EC2::SecurityGroup
    Properties:
      GroupDescription: Limits security group egress traffic
      SecurityGroupEgress:
      - CidrIp: 127.0.0.1/32
        IpProtocol: "-1"