From 8cd299715da83971292f15777af09ab881f50f1b Mon Sep 17 00:00:00 2001 From: Mike VanDenburgh Date: Tue, 17 Sep 2024 11:11:40 -0400 Subject: [PATCH] Keep opensearch name the same --- terraform/modules/spack_aws_k8s/opensearch.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/modules/spack_aws_k8s/opensearch.tf b/terraform/modules/spack_aws_k8s/opensearch.tf index 4ed496908..9972fbd7b 100644 --- a/terraform/modules/spack_aws_k8s/opensearch.tf +++ b/terraform/modules/spack_aws_k8s/opensearch.tf @@ -10,7 +10,7 @@ resource "random_password" "opensearch_password" { } resource "aws_opensearch_domain" "spack" { - domain_name = "spack${local.suffix}" + domain_name = "spack${var.deployment_name == "prod" ? "" : "-${var.deployment_name}"}" engine_version = "OpenSearch_1.3"