From 0130e1d0860f63fe546a4dbd7eaacf40db3b04da Mon Sep 17 00:00:00 2001 From: sunhui Date: Wed, 2 Mar 2022 19:40:33 +0800 Subject: [PATCH] Alibaba: fix the creation of public-record When the publish is 'Internal', need not to create public record Signed-off-by: sunhui --- data/data/alibabacloud/cluster/dns/privatezone.tf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/data/alibabacloud/cluster/dns/privatezone.tf b/data/data/alibabacloud/cluster/dns/privatezone.tf index 0ec652e9cc8..6050ea48979 100644 --- a/data/data/alibabacloud/cluster/dns/privatezone.tf +++ b/data/data/alibabacloud/cluster/dns/privatezone.tf @@ -12,6 +12,8 @@ data "alicloud_pvtz_service" "open" { } resource "alicloud_alidns_record" "dns_public_record" { + count = local.is_external ? 1 : 0 + domain_name = var.base_domain rr = "api.${local.cluster_name}" type = "A"