

# ec2-security-group-attached-to-eni
<a name="ec2-security-group-attached-to-eni"></a>

Checks if non-default security groups are attached to elastic network interfaces. The rule is NON\_COMPLIANT if the security group is not associated with a network interface. 



**Identifier:** EC2\_SECURITY\_GROUP\_ATTACHED\_TO\_ENI

**Resource Types:** AWS::EC2::SecurityGroup

**Trigger type:** Configuration changes

**Amazon Web Services Region:** All supported Amazon regions

**Parameters:**

None  

## Amazon CloudFormation template
<a name="w2aac20c16c17b7d607c19"></a>

To create Amazon Config managed rules with Amazon CloudFormation templates, see [Creating Amazon Config Managed Rules With Amazon CloudFormation Templates](aws-config-managed-rules-cloudformation-templates.md).