Skip to content

Commit

Permalink
Enable master user and password option
Browse files Browse the repository at this point in the history
Module is not capable to pass user and password while internal_user_database_enabled is true.
  • Loading branch information
ianuragsingh committed Jul 9, 2024
1 parent e32465a commit dd502dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ resource "aws_opensearch_domain" "this" {

master_user_options {
master_user_arn = (!var.internal_user_database_enabled && var.master_user_arn != "") ? var.master_user_arn : null
master_user_name = (var.internal_user_database_enabled && var.master_user_arn == "") ? var.master_user_name : null
master_user_password = (var.internal_user_database_enabled && var.master_user_arn == "") ? var.master_user_password : null
master_user_name = (var.internal_user_database_enabled && var.master_user_name != "") ? var.master_user_name : null
master_user_password = (var.internal_user_database_enabled && var.master_user_password != "") ? var.master_user_password : null
}
}

Expand Down

0 comments on commit dd502dc

Please sign in to comment.