Skip to content

Commit 1117260

Browse files
authored
Specify cluster.routing.allocation.enable under String settings (#185)
* Specify cluster.routing.allocation.enable under String cluster settings instead of Boolean Signed-off-by: Rupa Lahiri <[email protected]> * Format terraform code in resource_opensearch_cluster_settings_test.go Signed-off-by: Rupa Lahiri <[email protected]> --------- Signed-off-by: Rupa Lahiri <[email protected]>
1 parent 332430d commit 1117260

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

provider/resource_opensearch_cluster_settings.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ var (
3535
"script.max_compilations_rate",
3636
"search.default_search_timeout",
3737
"action.auto_create_index",
38+
"cluster.routing.allocation.enable",
3839
}
3940
intClusterSettings = []string{
4041
"cluster.max_shards_per_node",
@@ -60,7 +61,6 @@ var (
6061
"cluster.indices.close.enable",
6162
"cluster.routing.allocation.disk.include_relocations",
6263
"cluster.routing.allocation.disk.threshold_enabled",
63-
"cluster.routing.allocation.enable",
6464
"cluster.routing.allocation.same_shard.host",
6565
"action.destructive_requires_name",
6666
}

provider/resource_opensearch_cluster_settings_test.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ func checkOpensearchClusterSettingsDestroy(s *terraform.State) error {
8484

8585
var testAccOpensearchClusterSettings = `
8686
resource "opensearch_cluster_settings" "global" {
87-
cluster_max_shards_per_node = 10
88-
action_auto_create_index = "my-index-000001,index10,-index1*,+ind*,-.aws_cold_catalog*,+*"
87+
cluster_max_shards_per_node = 10
88+
cluster_routing_allocation_enable = "all"
89+
action_auto_create_index = "my-index-000001,index10,-index1*,+ind*,-.aws_cold_catalog*,+*"
8990
}
9091
`

0 commit comments

Comments
 (0)