From 6c537edc2544642e5ddef9a17b03333779e091d3 Mon Sep 17 00:00:00 2001 From: hezijie Date: Tue, 10 Sep 2024 10:54:42 +0800 Subject: [PATCH] adjust error message --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 805ee9af..1570997c 100644 --- a/main.tf +++ b/main.tf @@ -638,7 +638,7 @@ resource "azurerm_kubernetes_cluster" "main" { } precondition { condition = var.private_dns_zone_id == null ? true : (anytrue([for r in local.valid_private_dns_zone_regexs : try(regex(r, reverse(split("/", var.private_dns_zone_id))[0]) == reverse(split("/", var.private_dns_zone_id))[0], false)])) - error_message = "Private DNS zone must be in one of the following format: `privatelink..azmk8s.io`, `.privatelink..azmk8s.io`, `private..azmk8s.io`, `.private..azmk8s.io`" + error_message = "According to the [document](https://learn.microsoft.com/en-us/azure/aks/private-clusters?tabs=azure-portal#configure-a-private-dns-zone), the private DNS zone must be in one of the following format: `privatelink..azmk8s.io`, `.privatelink..azmk8s.io`, `private..azmk8s.io`, `.private..azmk8s.io`" } } }