

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

Checks that non-default security groups are attached to Amazon Elastic Compute Cloud (EC2) instances or an elastic network interfaces (ENIs). The rule returns NON\_COMPLIANT if the security group is not associated with an EC2 instance or an ENI. 



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

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

**Trigger type:** Configuration changes

**AWS Region:** All supported AWS regions

**Parameters:**

None  

## AWS CloudFormation template
<a name="w2aac20c16c17b7d611c19"></a>

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