Skip to content

Commit 0c186c4

Browse files
authored
Merge pull request #21 from jlfowle/master
Add support for warm storage
2 parents 9bede37 + 6bea97b commit 0c186c4

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ module "aws_es" {
122122
| cluster\_config\_instance\_count | Number of instances in the cluster | `number` | `3` | no |
123123
| cluster\_config\_instance\_type | Instance type of data nodes in the cluster | `string` | `"r5.large.elasticsearch"` | no |
124124
| cluster\_config\_zone\_awareness\_enabled | Indicates whether zone awareness is enabled. To enable awareness with three Availability Zones | `bool` | `false` | no |
125+
| cluster\_config\_warm\_enabled | Indicates whether to enable warm storage | `bool` | `false` | no |
126+
| cluster\_config\_warm\_count | The number of warm nodes in the cluster. Valid values are between 2 and 150. warm_count can be only and must be set when `warm_enabled` is set to true | `number` | `2` | no |
127+
| cluster\_config\_warm\_type | The instance type for the Elasticsearch cluster's warm nodes. Valid values are ultrawarm1.medium.elasticsearch, ultrawarm1.large.elasticsearch and ultrawarm1.xlarge.elasticsearch. warm_type can be only and must be set when warm_enabled is set to true | `string` | `ultrawarm1.medium.elasticsearch` | no |
125128
| cognito\_options | Options for Amazon Cognito Authentication for Kibana | `map` | `{}` | no |
126129
| cognito\_options\_enabled | Specifies whether Amazon Cognito authentication with Kibana is enabled or not | `bool` | `false` | no |
127130
| cognito\_options\_identity\_pool\_id | ID of the Cognito Identity Pool to use | `string` | `""` | no |

main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ resource "aws_elasticsearch_domain" "es_domain" {
7373
dedicated_master_type = lookup(cluster_config.value, "dedicated_master_type")
7474
dedicated_master_count = lookup(cluster_config.value, "dedicated_master_count")
7575
zone_awareness_enabled = lookup(cluster_config.value, "zone_awareness_enabled")
76+
warm_enabled = lookup(cluster_config.value, "warm_enabled")
77+
warm_count = lookup(cluster_config.value, "warm_count")
78+
warm_type = lookup(cluster_config.value, "warm_type")
7679

7780
dynamic "zone_awareness_config" {
7881
# cluster_availability_zone_count valid values: 2 or 3.
@@ -205,6 +208,9 @@ locals {
205208
dedicated_master_count = lookup(var.cluster_config, "dedicated_master_count", null) == null ? var.cluster_config_dedicated_master_count : lookup(var.cluster_config, "dedicated_master_count")
206209
zone_awareness_enabled = lookup(var.cluster_config, "zone_awareness_enabled", null) == null ? var.cluster_config_zone_awareness_enabled : lookup(var.cluster_config, "zone_awareness_enabled")
207210
availability_zone_count = lookup(var.cluster_config, "availability_zone_count", null) == null ? var.cluster_config_availability_zone_count : lookup(var.cluster_config, "availability_zone_count")
211+
warm_enabled = lookup(var.cluster_config, "warm_enabled", null) == null ? var.cluster_config_warm_enabled : lookup(var.cluster_config, "warm_enabled")
212+
warm_count = lookup(var.cluster_config, "warm_count", null) == null ? var.cluster_config_warm_count : lookup(var.cluster_config, "warm_count")
213+
warm_type = lookup(var.cluster_config, "warm_type", null) == null ? var.cluster_config_warm_type : lookup(var.cluster_config, "warm_type")
208214
}
209215

210216
cluster_config = [local.cluster_config_default]

variables.tf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,24 @@ variable "cluster_config_zone_awareness_enabled" {
193193
default = false
194194
}
195195

196+
variable "cluster_config_warm_enabled" {
197+
description = "Indicates whether to enable warm storage"
198+
type = bool
199+
default = false
200+
}
201+
202+
variable "cluster_config_warm_count" {
203+
description = "The number of warm nodes in the cluster"
204+
type = number
205+
default = 2
206+
}
207+
208+
variable "cluster_config_warm_type" {
209+
description = "The instance type for the Elasticsearch cluster's warm nodes"
210+
type = string
211+
default = "ultrawarm1.medium.elasticsearch"
212+
}
213+
196214
# snapshot_options
197215
variable "snapshot_options" {
198216
description = "Snapshot related options"

0 commit comments

Comments
 (0)