

# 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

**AWS Region:** All supported AWS regions

**Parameters:**

None  

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