

# desired-instance-tenancy
<a name="desired-instance-tenancy"></a>

Checks EC2 instances for a 'tenancy' value. Also checks if AMI IDs are specified to be launched from those AMIs or if Host IDs are launched on those Dedicated Hosts. The rule is COMPLIANT if the instance matches a host and an AMI, if specified, in a list. 



**Identifier:** DESIRED\$1INSTANCE\$1TENANCY

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

**Trigger type:** Configuration changes

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

**Parameters:**

tenancyType: String  
Desired tenancy of the instances. Valid values are DEDICATED, HOST and DEFAULT

imageId (Optional)Type: CSV  
The rule evaluates instances launched only from AMIs with the specified IDs. Separate multiple AMI IDs with commas

hostId (Optional)Type: CSV  
The IDs of the EC2 Dedicated Hosts on which the instances are meant to be launched. Separate multiple Host IDs with commas

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