github.com/pmcatominey/terraform@v0.7.0-rc2.0.20160708105029-1401a52a5cc5/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 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 tags { 42 Domain = "TestDomain" 43 } 44 } 45 ``` 46 47 ## Argument Reference 48 49 The following arguments are supported: 50 51 * `domain_name` - (Required) Name of the domain. 52 * `access_policies` - (Optional) IAM policy document specifying the access policies for the domain 53 * `advanced_options` - (Optional) Key-value string pairs to specify advanced configuration options. 54 * `ebs_options` - (Optional) EBS related options, see below. 55 * `cluster_config` - (Optional) Cluster configuration of the domain, see below. 56 * `snapshot_options` - (Optional) Snapshot related options, see below. 57 * `tags` - (Optional) A mapping of tags to assign to the resource 58 59 **ebs_options** supports the following attributes: 60 61 * `ebs_enabled` - (Required) Whether EBS volumes are attached to data nodes in the domain 62 * `volume_type` - (Optional) The type of EBS volumes attached to data nodes. 63 * `volume_size` - The size of EBS volumes attached to data nodes. 64 **Required** if `ebs_enabled` is set to `true`. 65 * `iops` - (Optional) The baseline input/output (I/O) performance of EBS volumes 66 attached to data nodes. Applicable only for the Provisioned IOPS EBS volume type. 67 68 **cluster_config** supports the following attributes: 69 70 * `instance_type` - (Optional) Instance type of data nodes in the cluster. 71 * `instance_count` - (Optional) Number of instances in the cluster. 72 * `dedicated_master_enabled` - (Optional) Indicates whether dedicated master nodes are enabled for the cluster. 73 * `dedicated_master_type` - (Optional) Instance type of the dedicated master nodes in the cluster. 74 * `dedicated_master_count` - (Optional) Number of dedicated master nodes in the cluster 75 * `zone_awareness_enabled` - (Optional) Indicates whether zone awareness is enabled. 76 77 **snapshot_options** supports the following attribute: 78 79 * `automated_snapshot_start_hour` - (Required) Hour during which the service takes an automated daily 80 snapshot of the indices in the domain. 81 82 83 ## Attributes Reference 84 85 The following attributes are exported: 86 87 * `arn` - Amazon Resource Name (ARN) of the domain. 88 * `domain_id` - Unique identifier for the domain. 89 * `endpoint` - Domain-specific endpoint used to submit index, search, and data upload requests.