blob: f269129abe6f046ad0018209e2d4f3de994f6f51 (
plain) (
tree)
|
|
data "cloudflare_zones" "homelab_main_domain" {
filter {
name = var.homelab_main_domain
}
}
variable "homelab_www_domain" {
default = "clarkzjw.cc"
}
variable "homelab_www_ip" {
default = "8.8.8.8"
}
resource "cloudflare_record" "main" {
zone_id = data.cloudflare_zones.homelab_main_domain.zones[0].id
name = var.homelab_www_domain
value = var.homelab_www_ip
type = "A"
ttl = 1
proxied = true
}
|