github.com/ves/terraform@v0.8.0-beta2/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-resource-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 elasticsearch_version = "1.5" 18 advanced_options { 19 "rest.action.multi.allow_explicit_index" = true 20 } 21 22 access_policies = <<CONFIG 23 { 24 "Version": "2012-10-17", 25 "Statement": [ 26 { 27 "Action": "es:*", 28 "Principal": "*", 29 "Effect": "Allow", 30 "Condition": { 31 "IpAddress": {"aws:SourceIp": ["66.193.100.22/32"]} 32 } 33 } 34 ] 35 } 36 CONFIG 37 38 snapshot_options { 39 automated_snapshot_start_hour = 23 40 } 41 42 tags { 43 Domain = "TestDomain" 44 } 45 } 46 ``` 47 48 ## Argument Reference 49 50 The following arguments are supported: 51 52 * `domain_name` - (Required) Name of the domain. 53 * `access_policies` - (Optional) IAM policy document specifying the access policies for the domain 54 * `advanced_options` - (Optional) Key-value string pairs to specify advanced configuration options. 55 * `ebs_options` - (Optional) EBS related options, see below. 56 * `cluster_config` - (Optional) Cluster configuration of the domain, see below. 57 * `snapshot_options` - (Optional) Snapshot related options, see below. 58 * `elasticsearch_version` - (Optional) The version of ElasticSearch to deploy. Only valid values are `1.5` and `2.3`. Defaults to `1.5` 59 * `tags` - (Optional) A mapping of tags to assign to the resource 60 61 **ebs_options** supports the following attributes: 62 63 * `ebs_enabled` - (Required) Whether EBS volumes are attached to data nodes in the domain 64 * `volume_type` - (Optional) The type of EBS volumes attached to data nodes. 65 * `volume_size` - The size of EBS volumes attached to data nodes. 66 **Required** if `ebs_enabled` is set to `true`. 67 * `iops` - (Optional) The baseline input/output (I/O) performance of EBS volumes 68 attached to data nodes. Applicable only for the Provisioned IOPS EBS volume type. 69 70 **cluster_config** supports the following attributes: 71 72 * `instance_type` - (Optional) Instance type of data nodes in the cluster. 73 * `instance_count` - (Optional) Number of instances in the cluster. 74 * `dedicated_master_enabled` - (Optional) Indicates whether dedicated master nodes are enabled for the cluster. 75 * `dedicated_master_type` - (Optional) Instance type of the dedicated master nodes in the cluster. 76 * `dedicated_master_count` - (Optional) Number of dedicated master nodes in the cluster 77 * `zone_awareness_enabled` - (Optional) Indicates whether zone awareness is enabled. 78 79 **snapshot_options** supports the following attribute: 80 81 * `automated_snapshot_start_hour` - (Required) Hour during which the service takes an automated daily 82 snapshot of the indices in the domain. 83 84 85 ## Attributes Reference 86 87 The following attributes are exported: 88 89 * `arn` - Amazon Resource Name (ARN) of the domain. 90 * `domain_id` - Unique identifier for the domain. 91 * `endpoint` - Domain-specific endpoint used to submit index, search, and data upload requests.