Skip to content

Commit 90e128e

Browse files
committed
updates var lb_dns_name
1 parent bda3ab2 commit 90e128e

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

infra/modules/load-balancer/lb.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ resource "azurerm_public_ip" "lb" {
44
resource_group_name = var.resource_group_name
55
allocation_method = "Static"
66
sku = "Standard"
7-
8-
domain_name_label = var.lb_dns_name
7+
domain_name_label = var.lb_dns_name
98
}
109

1110
resource "azurerm_lb" "main" {

infra/modules/load-balancer/variables.tf

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ variable "virtual_network_main_id" { type = string }
66
variable "backend_subnet_id" { type = string }
77
variable "mysql_fqdn" { type = string }
88
variable "admin_username" { type = string }
9+
variable "lb_dns_name" { type = string }
910

1011
variable "ssh_public_key" {
1112
description = "Public SSH key to access VMs"
@@ -18,7 +19,4 @@ variable "lb_api_port" {
1819
default = 8080
1920
}
2021

21-
variable "lb_dns_name" {
22-
description = "DNS label for the public IP"
23-
type = string
24-
}
22+

0 commit comments

Comments
 (0)