File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ variable "es_instance_count" {
10
10
default = 2
11
11
}
12
12
13
+ variable "es_dedicated_master_enabled" {
14
+ type = bool
15
+ description = " Set to true to enable dedicated master nodes"
16
+ default = false
17
+ }
18
+
13
19
variable "es_dedicated_master_type" {
14
20
type = string
15
21
description = " Instance type of the dedicated main nodes in the cluster."
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ module "opensearch" {
54
54
55
55
cluster_config = {
56
56
instance_count = var.es_instance_count
57
- dedicated_master_enabled = true
57
+ dedicated_master_enabled = var.es_dedicated_master_enabled
58
58
dedicated_master_type = var.es_dedicated_master_type
59
59
instance_type = coalesce (var. es_instance_type , var. es_dedicated_master_type )
60
60
You can’t perform that action at this time.
0 commit comments