From fa811d29e80f1658b8af148c8d0697b29fbc6593 Mon Sep 17 00:00:00 2001 From: shin <70582181+sshcokr@users.noreply.github.com> Date: Tue, 9 Apr 2024 20:36:37 +0900 Subject: [PATCH] fix: Fix the condition of the logical operators of `master_user_name` and `master_user_password` (#4) --- main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index f0a152c..304cf31 100644 --- a/main.tf +++ b/main.tf @@ -46,8 +46,8 @@ resource "aws_opensearch_domain" "this" { content { master_user_arn = try(master_user_options.value.master_user_arn, null) == null ? try(master_user_options.value.master_user_arn, data.aws_iam_session_context.current[0].issuer_arn) : null - master_user_name = try(master_user_options.value.master_user_name, null) == null ? try(master_user_options.value.master_user_name, null) : null - master_user_password = try(master_user_options.value.master_user_password, null) == null ? try(master_user_options.value.master_user_password, null) : null + master_user_name = try(master_user_options.value.master_user_arn, null) == null ? try(master_user_options.value.master_user_name, null) : null + master_user_password = try(master_user_options.value.master_user_arn, null) == null ? try(master_user_options.value.master_user_password, null) : null } } }