mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-22 20:04:32 +07:00
refactor(external): use generic zone name for zone data
This commit is contained in:
parent
1812ac67be
commit
25ac9e0115
@ -1,4 +1,4 @@
|
||||
data "cloudflare_zone" "khuedoan_com" {
|
||||
data "cloudflare_zone" "zone" {
|
||||
name = "khuedoan.com"
|
||||
}
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user