From b93322a16124e115e7bd0a02da056aaa83dc1ad8 Mon Sep 17 00:00:00 2001 From: Tom Archer Date: Thu, 11 Jul 2024 06:28:48 -0700 Subject: [PATCH] Working on edge zone name --- quickstart/101-aks-edge-zone/main.tf | 9 ++------- quickstart/101-aks-edge-zone/variables.tf | 8 +++++++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/quickstart/101-aks-edge-zone/main.tf b/quickstart/101-aks-edge-zone/main.tf index 0e3afee1d..830e413e7 100644 --- a/quickstart/101-aks-edge-zone/main.tf +++ b/quickstart/101-aks-edge-zone/main.tf @@ -12,17 +12,12 @@ resource "random_string" "aks_cluster_name" { special = false } -resource "random_string" "edge_zone_name" { - length = 12 - special = false -} - resource "azurerm_kubernetes_cluster" "aks_cluster" { name = random_string.aks_cluster_name.result location = azurerm_resource_group.rg.location resource_group_name = azurerm_resource_group.rg.name - dns_prefix = "myakscluster" - edge_zone = random_string.edge_zone_name.result + dns_prefix = "myakscluster" + edge_zone = var.edge_zone default_node_pool { name = "default" diff --git a/quickstart/101-aks-edge-zone/variables.tf b/quickstart/101-aks-edge-zone/variables.tf index 1a8c6abba..8511958e8 100644 --- a/quickstart/101-aks-edge-zone/variables.tf +++ b/quickstart/101-aks-edge-zone/variables.tf @@ -1,6 +1,6 @@ variable "resource_group_location" { type = string - default = "eastus" + default = "westus" description = "Location of the resource group." } @@ -8,4 +8,10 @@ variable "resource_group_name_prefix" { type = string default = "rg" description = "Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription." +} + +variable "edge_zone" { + type = string + default = "" + description = "Name of the edge zone." } \ No newline at end of file