Skip to content

Commit c3ca531

Browse files
author
Lucas Vieira
committed
Fix opensearch credentials defaults
1 parent ecead1c commit c3ca531

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/amazon-opensearch-domain/locals.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ resource "random_password" "opensearch_master_password" {
55
}
66

77
locals {
8-
opensearch_master_user_name = var.master_user_name == "" ? "observability-accelerator" : var.master_user_name
9-
opensearch_master_user_password = var.master_user_password
8+
opensearch_master_user_name = var.master_user_name
9+
opensearch_master_user_password = var.master_user_password == "" ? random_password.opensearch_master_password.result : var.master_user_password
1010
availability_zone = var.availability_zone == "" ? "${var.aws_region}a" : var.availability_zone
1111
}

0 commit comments

Comments
 (0)