Skip to content

Commit ea1eac9

Browse files
Disable OpenSearch autotune by default (#21)
This feature is only supported by some set of more expensive tiers, so if someone wants to use a tier that doesn't support auto-tune, they'll have to include additional configuration to the resource to support that instead of the other way around. By not enabling that feature by default, we'll only have it if someone intentionally wants to use it.
1 parent 22b501f commit ea1eac9

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

modules/opensearch/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ resource "aws_opensearch_domain" "this" {
6767
for_each = length(var.auto_tune_options) > 0 ? [var.auto_tune_options] : []
6868

6969
content {
70-
desired_state = try(auto_tune_options.value.desired_state, "ENABLED")
70+
desired_state = try(auto_tune_options.value.desired_state, "DISABLED")
7171

7272
dynamic "maintenance_schedule" {
7373
for_each = try(auto_tune_options.value.maintenance_schedule, [])

modules/opensearch/variables.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ variable "auto_tune_options" {
3939
description = "Configuration block for the Auto-Tune options of the domain"
4040
type = any
4141
default = {
42-
desired_state = "ENABLED"
43-
rollback_on_disable = "NO_ROLLBACK"
42+
desired_state = "DISABLED"
4443
}
4544
}
4645

opensearch.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module "opensearch" {
3636
}
3737

3838
auto_tune_options = {
39-
desired_state = "ENABLED"
39+
desired_state = "DISABLED"
4040

4141
maintenance_schedule = [
4242
{

0 commit comments

Comments
 (0)