declared user & pwd as vars

This commit is contained in:
Tom Archer 2024-07-01 17:00:31 -07:00
parent da5efce177
commit 1bd62d28a8
2 changed files with 14 additions and 2 deletions

View File

@ -50,8 +50,8 @@ resource "azurerm_kubernetes_cluster" "aks" {
} }
windows_profile { windows_profile {
admin_username = "azureadmin" admin_username = var.admin_username
admin_password = "Password0123!" admin_password = var.admin_password
} }
network_profile { network_profile {

View File

@ -20,4 +20,16 @@ variable "node_count_windows" {
type = number type = number
description = "The initial quantity of Windows nodes for the node pool." description = "The initial quantity of Windows nodes for the node pool."
default = 1 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!"
} }