From 096e22dc08a24a850e95a3d8f6525b3a02c20b8e Mon Sep 17 00:00:00 2001 From: Keir Badger Date: Fri, 17 May 2024 11:03:52 +0100 Subject: [PATCH] bug fix --- main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 9ed980f..e683462 100644 --- a/main.tf +++ b/main.tf @@ -79,9 +79,9 @@ resource "aws_alb_target_group" "target_group" { locals { logical_service_name = "${var.env}-${replace(var.component_name, "/-service$/", "")}" # full_account_name = "${var.env == "live" ? "${var.aws_account_alias}prod" : "${var.aws_account_alias}dev"}" - full_account_name = "${var.env == "live" ? (var.aws_account_alias == "" ? "" : "${var.aws_account_alias}prod") : "${var.aws_account_alias}dev"}" + full_account_name = "${var.env == "live" ? (var.aws_account_alias == "" ? "" : "${var.aws_account_alias}prod.") : "${var.aws_account_alias}dev."}" backend_dns_domain = "${local.full_account_name}.${var.backend_dns}" - backend_dns_record = "${local.logical_service_name}.${local.backend_dns_domain}" + backend_dns_record = "${local.logical_service_name}${local.backend_dns_domain}" simple_backend_dns_record = "${local.env_prefix}${replace(var.component_name, "/-service$/", "")}.${local.backend_dns_domain}" }