Closed nrv-96 closed 3 months ago
hello @nrv-96 . The problem is the nodepool name that is too long
│ Error: the "name" must begin with a lowercase letter, contain only lowercase letters and numbers and be between 1 and 12 characters in length, got "npnpsystmnodp3"
@zioproto , Can you please add custom option enable and disable for log analytics and ACR registry?
@zioproto , Can you please add custom option enable and disable for log analytics and ACR registry?
Sorry, this is a "pattern" module that includes ACR and Log Analytics. If you need more flexibility you should use https://github.com/Azure/terraform-azurerm-aks
Check for previous/existing GitHub issues
Issue Type?
Bug
(Optional) Module Version
"0.1.0"
(Optional) Correlation Id
No response
Description
I have below code: main.tf
Variable.tf
Getting Below Error While Terraform Plan:
Error: the "name" must begin with a lowercase letter, contain only lowercase letters and numbers and be between 1 and 12 characters in length, got "npnpsystmnodp1" │ │ with module.aks.azurerm_kubernetes_cluster_node_pool.this["npsystmnodp1"], │ on .terraform\modules\aks\main.tf line 225, in resource "azurerm_kubernetes_cluster_node_pool" "this": │ 225: name = "np${each.value.name}" │ ╵ ╷ │ Error: the "name" must begin with a lowercase letter, contain only lowercase letters and numbers and be between 1 and 12 characters in length, got "npnpsystmnodp2" │ │ with module.aks.azurerm_kubernetes_cluster_node_pool.this["npsystmnodp2"], │ on .terraform\modules\aks\main.tf line 225, in resource "azurerm_kubernetes_cluster_node_pool" "this": │ 225: name = "np${each.value.name}" │ ╵ ╷ │ Error: the "name" must begin with a lowercase letter, contain only lowercase letters and numbers and be between 1 and 12 characters in length, got "npnpsystmnodp3" │ │ with module.aks.azurerm_kubernetes_cluster_node_pool.this["npsystmnodp3"], │ on .terraform\modules\aks\main.tf line 225, in resource "azurerm_kubernetes_cluster_node_pool" "this": │ 225: name = "np${each.value.name}" │