github.com/turtlemonvh/terraform@v0.6.9-0.20151204001754-8e40b6b855e8/website/source/docs/providers/aws/r/elasticsearch_domain.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_elasticsearch_domain"
     4  sidebar_current: "docs-aws-elasticsearch-domain"
     5  description: |-
     6    Provides an ElasticSearch Domain.
     7  ---
     8  
     9  # aws\_elasticsearch\_domain
    10  
    11  
    12  ## Example Usage
    13  
    14  ```
    15  resource "aws_elasticsearch_domain" "es" {
    16  	domain_name = "tf-test"
    17  	advanced_options {
    18  		"rest.action.multi.allow_explicit_index" = true
    19  	}
    20  
    21  	access_policies = <<CONFIG
    22  {
    23  	"Version": "2012-10-17",
    24  	"Statement": [
    25  		{
    26  			"Action": "es:*",
    27  			"Principal": "*",
    28  			"Effect": "Allow",
    29  			"Condition": {
    30  				"IpAddress": {"aws:SourceIp": ["66.193.100.22/32"]}
    31  			}
    32  		}
    33  	]
    34  }
    35  CONFIG
    36  
    37  	snapshot_options {
    38  		automated_snapshot_start_hour = 23
    39  	}
    40  }
    41  ```
    42  
    43  ## Argument Reference
    44  
    45  The following arguments are supported:
    46  
    47  * `domain_name` - (Required) Name of the domain.
    48  * `access_policies` - (Optional) IAM policy document specifying the access policies for the domain
    49  * `advanced_options` - (Optional) Key-value string pairs to specify advanced configuration options.
    50  * `ebs_options` - (Optional) EBS related options, see below.
    51  * `cluster_config` - (Optional) Cluster configuration of the domain, see below.
    52  * `snapshot_options` - (Optional) Snapshot related options, see below.
    53  
    54  **ebs_options** supports the following attributes:
    55  
    56  * `ebs_enabled` - (Required) Whether EBS volumes are attached to data nodes in the domain
    57  * `volume_type` - (Optional) The type of EBS volumes attached to data nodes.
    58  * `volume_size` - (Optional) The size of EBS volumes attached to data nodes.
    59  * `iops` - (Optional) The baseline input/output (I/O) performance of EBS volumes
    60  	attached to data nodes. Applicable only for the Provisioned IOPS EBS volume type.
    61  
    62  **cluster_config** supports the following attributes:
    63  
    64  * `instance_type` - (Optional) Instance type of data nodes in the cluster.
    65  * `instance_count` - (Optional) Number of instances in the cluster.
    66  * `dedicated_master_enabled` - (Optional) Indicates whether dedicated master nodes are enabled for the cluster.
    67  * `dedicated_master_type` - (Optional) Instance type of the dedicated master nodes in the cluster.
    68  * `dedicated_master_count` - (Optional) Number of dedicated master nodes in the cluster
    69  * `zone_awareness_enabled` - (Optional) Indicates whether zone awareness is enabled.
    70  
    71  **snapshot_options** supports the following attribute:
    72  
    73  * `automated_snapshot_start_hour` - (Required) Hour during which the service takes an automated daily
    74  	snapshot of the indices in the domain.
    75  
    76  
    77  ## Attributes Reference
    78  
    79  The following attributes are exported:
    80  
    81  * `arn` - Amazon Resource Name (ARN) of the domain.
    82  * `domain_id` - Unique identifier for the domain.
    83  * `endpoint` - Domain-specific endpoint used to submit index, search, and data upload requests.