Skip to content

Commit

Permalink
Update main.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
keirbadger authored May 17, 2024
1 parent f7d0854 commit 1196177
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ resource "aws_alb_target_group" "target_group" {
}

locals {
logical_service_name = "${var.env}-${replace(var.component_name, "/-service$/", "")}"
# logical_service_name = "${var.env}-${replace(var.component_name, "/-service$/", "")}"
logical_service_name = "${var.env == "live" && var.aws_account_alias == "" ? replace(var.component_name, "/-service$/", "") : "${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."}"
backend_dns_domain = "${local.full_account_name}${var.backend_dns}"
Expand Down

0 comments on commit 1196177

Please sign in to comment.