Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
8ad04d4
fix: hide admin password in TF apply logs
Aditya-ranjan-16 Sep 20, 2025
84d3908
fix: pre-commit
Aditya-ranjan-16 Sep 22, 2025
65c9c2e
Merge branch 'main' into data-read-fix
Aditya-ranjan-16 Sep 23, 2025
eb53725
fix
Aditya-ranjan-16 Sep 30, 2025
c084c40
Merge branch 'main' into data-read-fix
Aditya-ranjan-16 Sep 30, 2025
2f6bdf0
Merge branch 'main' into data-read-fix
shemau Oct 3, 2025
c3b2a78
Merge branch 'main' into data-read-fix
Aditya-ranjan-16 Oct 7, 2025
b8bebb2
fix: added external data block
Aditya-ranjan-16 Oct 10, 2025
fe994a1
fix
Aditya-ranjan-16 Oct 10, 2025
c0acef7
Merge branch 'main' into data-read-fix
Aditya-ranjan-16 Oct 15, 2025
ae50e9c
fix
Aditya-ranjan-16 Oct 15, 2025
9f99c3c
fix: tests
Aditya-ranjan-16 Oct 15, 2025
2873aa6
Merge branch 'main' into data-read-fix
Aditya-ranjan-16 Oct 20, 2025
4d76aa0
Merge branch 'main' into data-read-fix
shemau Oct 22, 2025
e13ecc4
Merge branch 'main' into data-read-fix
Aditya-ranjan-16 Oct 27, 2025
bd7a54f
Merge branch 'main' into data-read-fix
Ak-sky Oct 29, 2025
9165081
fix
Aditya-ranjan-16 Nov 4, 2025
0f0014d
Merge branch 'main' into data-read-fix
Aditya-ranjan-16 Nov 4, 2025
ea1802b
Merge branch 'main' into data-read-fix
Aditya-ranjan-16 Nov 4, 2025
7849ada
fix: script improvements
Aditya-ranjan-16 Nov 4, 2025
3c053de
Merge branch 'main' into data-read-fix
Aditya-ranjan-16 Nov 10, 2025
1be4971
Merge branch 'main' into data-read-fix
Aditya-ranjan-16 Nov 13, 2025
cc2e3d8
Merge branch 'main' into data-read-fix
Aditya-ranjan-16 Nov 17, 2025
cc70206
Merge branch 'main' into data-read-fix
Aditya-ranjan-16 Nov 19, 2025
afc6bce
Merge branch 'main' into data-read-fix
Aditya-ranjan-16 Nov 20, 2025
745113d
fix
Aditya-ranjan-16 Nov 20, 2025
9ff4414
Merge branch 'main' into data-read-fix
shemau Nov 21, 2025
6e153bf
bump cda
ocofaigh Nov 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 19 additions & 16 deletions examples/basic/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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*"
# }
9 changes: 5 additions & 4 deletions examples/basic/version.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ 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"
# }
}
}
7 changes: 5 additions & 2 deletions solutions/fully-configurable/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,11 @@ locals {
}

data "http" "es_metadata" {
count = var.enable_kibana_dashboard ? 1 : 0
url = "https://${local.elasticsearch_username}:${local.admin_pass}@${local.elasticsearch_hostname}:${local.elasticsearch_port}"
count = var.enable_kibana_dashboard ? 1 : 0
url = "https://${local.elasticsearch_hostname}:${local.elasticsearch_port}"
request_headers = {
Authorization = "Basic ${base64encode("${local.elasticsearch_username}:${local.admin_pass}")}"
}
ca_cert_pem = base64decode(local.elasticsearch_cert)
}

Expand Down