Use the `aws_ec2_security_groups` InSpec audit resource to test properties of some or all security groups.
Security groups are a networking construct which contain ingress and egress rules for network communications. Security groups may be attached to EC2 instances, as well as certain other AWS resources. Along with Network Access Control Lists, Security Groups are one of the two main mechanisms of enforcing network-level security.
<br>
## Syntax
An `aws_ec2_security_groups` resource block uses an optional filter to select a group of security groups and then tests that group.
# Verify you have more than the default security group