Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
neil-yechenwei committed Nov 20, 2023
1 parent 0767106 commit 27f64bf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion quickstart/301-aks-enterprise/networking.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,16 @@ resource "azurerm_subnet_network_security_group_association" "gateway" {
network_security_group_id = azurerm_network_security_group.gateway.id
}

resource "random_string" "gw_prefix_name" {
length = 30
special = false
numeric = false
}

locals {

gateway_name = "${var.dns_prefix}-${var.name}-${var.environment}-gateway"
gateway_ip_name = "${var.dns_prefix}-${var.name}-${var.environment}-gateway-ip"
gateway_ip_name = "${random_string.gw_prefix_name.result}-gw-ip"
gateway_ip_config_name = "${var.name}-gateway-ipconfig"
frontend_port_name = "${var.name}-gateway-feport"
frontend_ip_configuration_name = "${var.name}-gateway-feip"
Expand Down

0 comments on commit 27f64bf

Please sign in to comment.