

# ec2-instance-profile-attached
<a name="ec2-instance-profile-attached"></a>

Checks if an EC2 instance has an Amazon Identity and Access Management (IAM) profile attached to it. The rule is NON\$1COMPLIANT if no IAM profile is attached to the EC2 instance. 



**Identifier:** EC2\$1INSTANCE\$1PROFILE\$1ATTACHED

**Resource Types:** AWS::EC2::Instance

**Trigger type:** Configuration changes

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

**Parameters:**

IamInstanceProfileArnList (Optional)Type: CSV  
Comma-separated list of IAM profile Amazon Resource Names (ARNs) that can be attached to Amazon EC2 instances.

## Amazon CloudFormation template
<a name="w2aac20c16c17b7d559c19"></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).