aboutsummaryrefslogblamecommitdiff
blob: f269129abe6f046ad0018209e2d4f3de994f6f51 (plain) (tree)
1
2
3
4
5
6
7
8
9
10





                                               
                               
                         

 
                           
                     

 
                                     
                                                                 

                                  




                
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
}
Powered by cgit v1.2.3 (git 2.41.0)