From 1bd62d28a8a1ed5284c19446f8902e989ffdd8c6 Mon Sep 17 00:00:00 2001 From: Tom Archer Date: Mon, 1 Jul 2024 17:00:31 -0700 Subject: [PATCH] declared user & pwd as vars --- quickstart/101-aks-cluster-windows/main.tf | 4 ++-- quickstart/101-aks-cluster-windows/variables.tf | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/quickstart/101-aks-cluster-windows/main.tf b/quickstart/101-aks-cluster-windows/main.tf index 7bb953f3..46513070 100644 --- a/quickstart/101-aks-cluster-windows/main.tf +++ b/quickstart/101-aks-cluster-windows/main.tf @@ -50,8 +50,8 @@ resource "azurerm_kubernetes_cluster" "aks" { } windows_profile { - admin_username = "azureadmin" - admin_password = "Password0123!" + admin_username = var.admin_username + admin_password = var.admin_password } network_profile { diff --git a/quickstart/101-aks-cluster-windows/variables.tf b/quickstart/101-aks-cluster-windows/variables.tf index 51cecde0..ce823cfb 100644 --- a/quickstart/101-aks-cluster-windows/variables.tf +++ b/quickstart/101-aks-cluster-windows/variables.tf @@ -20,4 +20,16 @@ variable "node_count_windows" { type = number description = "The initial quantity of Windows nodes for the node pool." default = 1 +} + +variable "admin_username" { + type = string + description = "The admin username for the Windows node pool." + default = "azureuser" +} + +variable "admin_password" { + type = string + description = "The admin password for the Windows node pool." + default = "Passw0rd1234Us!" } \ No newline at end of file