From 695c696241b7104379abf85622372a050cb37663 Mon Sep 17 00:00:00 2001 From: Aditya-ranjan-16 Date: Tue, 30 Sep 2025 12:57:47 +0530 Subject: [PATCH] fix: temporarily disabling index creation --- examples/basic/main.tf | 35 +++++++++++++++++++---------------- examples/basic/version.tf | 8 ++++---- 2 files changed, 23 insertions(+), 20 deletions(-) diff --git a/examples/basic/main.tf b/examples/basic/main.tf index 38baa314..2da6b98b 100644 --- a/examples/basic/main.tf +++ b/examples/basic/main.tf @@ -38,21 +38,24 @@ module "database" { # wait 60 secs to allow IAM credential access to kick in before configuring instance # without the wait, you can intermittently get "Error 401 (Unauthorized)" -resource "time_sleep" "wait" { - depends_on = [module.database] - create_duration = "60s" -} -resource "elasticsearch_index" "test" { - depends_on = [time_sleep.wait] - name = "terraform-test" - number_of_shards = 1 - number_of_replicas = 1 - force_destroy = true -} +# Temporarily disabling index creation due to an know issue blocking the pipeline : https://github.ibm.com/GoldenEye/issues/issues/16245. -resource "elasticsearch_cluster_settings" "global" { - depends_on = [time_sleep.wait] - cluster_max_shards_per_node = 10 - action_auto_create_index = "my-index-000001,index10,-index1*,+ind*" -} +# resource "time_sleep" "wait" { +# depends_on = [module.database] +# create_duration = "60s" +# } + +# resource "elasticsearch_index" "test" { +# depends_on = [time_sleep.wait] +# name = "terraform-test" +# number_of_shards = 1 +# number_of_replicas = 1 +# force_destroy = true +# } + +# resource "elasticsearch_cluster_settings" "global" { +# depends_on = [time_sleep.wait] +# cluster_max_shards_per_node = 10 +# action_auto_create_index = "my-index-000001,index10,-index1*,+ind*" +# } diff --git a/examples/basic/version.tf b/examples/basic/version.tf index c6967d0e..8aa8231b 100644 --- a/examples/basic/version.tf +++ b/examples/basic/version.tf @@ -12,9 +12,9 @@ terraform { version = ">= 2.0.7" } # The time provider is not actually required by the module itself, just this example, so OK to use ">=" here instead of locking into a version - time = { - source = "hashicorp/time" - version = ">= 0.9.1" - } + # time = { + # source = "hashicorp/time" + # version = ">= 0.9.1" + # } } }