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"