Skip to content

Commit

Permalink
Fix opensearch credentials defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Vieira committed Nov 23, 2024
1 parent ecead1c commit c3ca531
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/amazon-opensearch-domain/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit c3ca531

Please sign in to comment.