Skip to content

Commit

Permalink
feat: add outputs temporalui_* to replace temporal_admin
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Kopp authored and BrianKopp committed Jan 26, 2024
1 parent 736d504 commit 0284d57
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
2 changes: 1 addition & 1 deletion modules/bigeye/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ locals {
datawork_dns_name = "${local.base_dns_alias}-datawork.${var.top_level_dns_name}"
metricwork_dns_name = "${local.base_dns_alias}-metricwork.${var.top_level_dns_name}"
temporal_dns_name = "${local.base_dns_alias}-workflows.${var.top_level_dns_name}"
temporal_admin_dns_name = "${local.base_dns_alias}-workflows-admin.${var.top_level_dns_name}"
temporalui_dns_name = "${local.base_dns_alias}-workflows-admin.${var.top_level_dns_name}"
temporal_mysql_dns_name = "${local.base_dns_alias}-temporal-mysql.${var.top_level_dns_name}"
monocle_dns_name = "${local.base_dns_alias}-monocle.${var.top_level_dns_name}"
toretto_dns_name = "${local.base_dns_alias}-toretto.${var.top_level_dns_name}"
Expand Down
4 changes: 2 additions & 2 deletions modules/bigeye/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ resource "aws_route53_record" "scheduler" {
resource "aws_route53_record" "temporalui" {
count = var.create_dns_records ? 1 : 0
zone_id = data.aws_route53_zone.this.zone_id
name = local.temporal_admin_dns_name
name = local.temporalui_dns_name
type = "CNAME"
ttl = 300
records = [module.temporalui.dns_name]
Expand Down Expand Up @@ -614,7 +614,7 @@ module "bigeye_admin" {
monocle_domain_name = local.monocle_dns_name
toretto_domain_name = local.toretto_dns_name
temporal_domain_name = local.temporal_dns_name
temporalui_domain_name = local.temporal_admin_dns_name
temporalui_domain_name = local.temporalui_dns_name
datawatch_domain_name = local.datawatch_dns_name
datawork_domain_name = local.datawork_dns_name
metricwork_domain_name = local.metricwork_dns_name
Expand Down
23 changes: 19 additions & 4 deletions modules/bigeye/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -146,18 +146,33 @@ output "temporal_load_balancer_zone_id" {
value = aws_lb.temporal.zone_id
}

output "temporalui_dns_name" {
description = "DNS name for the temporal user interface"
value = local.temporalui_dns_name
}

output "temporalui_load_balancer_dns_name" {
description = "The dns name of the temporal user interface service load balancer"
value = module.temporalui.dns_name
}

output "temporalui_load_balancer_zone_id" {
description = "The Route53 Zone ID of the temporal user interface service load balancer"
value = module.temporalui.zone_id
}

output "temporal_admin_dns_name" {
description = "DNS name for the temporal admin service"
value = local.temporal_admin_dns_name
description = "DEPRECATED - DNS name for the temporal admin service"
value = local.temporalui_dns_name
}

output "temporal_admin_load_balancer_dns_name" {
description = "The dns name of the temporal admin load balancer"
description = "DEPRECATED - The dns name of the temporal admin load balancer"
value = module.temporalui.dns_name
}

output "temporal_admin_load_balancer_zone_id" {
description = "The Route53 Zone ID of the temporal admin load balancer"
description = "DEPRECATED - The Route53 Zone ID of the temporal admin load balancer"
value = module.temporalui.zone_id
}

Expand Down

0 comments on commit 0284d57

Please sign in to comment.