

# elasticsearch-in-vpc-only
<a name="elasticsearch-in-vpc-only"></a>

Checks if Amazon OpenSearch Service (previously called Elasticsearch) domains are in Amazon Virtual Private Cloud (Amazon VPC). The rule is NON\$1COMPLIANT if an OpenSearch Service domain endpoint is public. 



**Identifier:** ELASTICSEARCH\$1IN\$1VPC\$1ONLY

**Resource Types:** AWS::Elasticsearch::Domain

**Trigger type:** Periodic

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

**Parameters:**

None  

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