Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
keirbadger authored May 17, 2024
1 parent 5bd08cf commit 096e22d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}

Expand Down

0 comments on commit 096e22d

Please sign in to comment.