refactor(external): use generic zone name for zone data

This commit is contained in:
Khue Doan 2022-02-20 20:32:22 +07:00
parent 1812ac67be
commit 25ac9e0115
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
data "cloudflare_zone" "khuedoan_com" {
data "cloudflare_zone" "zone" {
name = "khuedoan.com"
}

View File

@ -11,7 +11,7 @@ resource "cloudflare_argo_tunnel" "homelab" {
# Not proxied, not accessible. Just a record for auto-created CNAMEs by external-dns.
resource "cloudflare_record" "tunnel" {
zone_id = data.cloudflare_zone.khuedoan_com.id
zone_id = data.cloudflare_zone.zone.id
type = "CNAME"
name = "homelab-tunnel"
value = "${cloudflare_argo_tunnel.homelab.id}.cfargotunnel.com"