<commit_before>---
layout: "aws"
page_title: "AWS: aws_elasticsearch_domain"
sidebar_current: "docs-aws-resource-elasticsearch-domain"
description: |-
  Provides an ElasticSearch Domain.
---

# aws\_elasticsearch\_domain


## Example Usage

```
resource "aws_elasticsearch_domain" "es" {
  domain_name           = "tf-test"
  elasticsearch_version = "1.5"
  cluster_config {
    instance_type = "r3.large.elasticsearch"
  }

  advanced_options {
    "rest.action.multi.allow_explicit_index" = true
  }

  access_policies = <<CONFIG
{
	"Version": "2012-10-17",<commit_msg>provider/aws: Documentation fixed for elasticsearch_domain (#13704)<commit_after>---
layout: "aws"
page_title: "AWS: aws_elasticsearch_domain"
sidebar_current: "docs-aws-resource-elasticsearch-domain"
description: |-
  Provides an ElasticSearch Domain.
---

# aws\_elasticsearch\_domain


## Example Usage

```
resource "aws_elasticsearch_domain" "es" {
  domain_name           = "tf-test"
  elasticsearch_version = "1.5"
  cluster_config {
    instance_type = "r3.large.elasticsearch"
  }

  advanced_options {
    "rest.action.multi.allow_explicit_index" = "true"
  }

  access_policies = <<CONFIG
{
	"Version": "2012-10-17",
{'fraction_non_alphanumeric': 0.1310517529215359, 'fraction_numerical': 0.022537562604340568, 'mean_word_length': 4.190476190476191, 'pattern_counts': {'":': 2, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '140351', 'n_tokens_mistral': 422, 'n_tokens_neox': 410, 'n_words': 70}