From c3ca53128c749ba01c99a29a6ebd7ae3a9b92f96 Mon Sep 17 00:00:00 2001 From: Lucas Vieira Date: Sat, 23 Nov 2024 17:42:56 -0300 Subject: [PATCH] Fix opensearch credentials defaults --- examples/amazon-opensearch-domain/locals.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/amazon-opensearch-domain/locals.tf b/examples/amazon-opensearch-domain/locals.tf index d1a8ee51..0fbcf6bd 100644 --- a/examples/amazon-opensearch-domain/locals.tf +++ b/examples/amazon-opensearch-domain/locals.tf @@ -5,7 +5,7 @@ resource "random_password" "opensearch_master_password" { } locals { - opensearch_master_user_name = var.master_user_name == "" ? "observability-accelerator" : var.master_user_name - opensearch_master_user_password = var.master_user_password + opensearch_master_user_name = var.master_user_name + opensearch_master_user_password = var.master_user_password == "" ? random_password.opensearch_master_password.result : var.master_user_password availability_zone = var.availability_zone == "" ? "${var.aws_region}a" : var.availability_zone }