orchestration.clouds/ahoskingit/terraform/dns_automatedbytes.tf

56 lines
1.4 KiB
Terraform
Raw Permalink Normal View History

##Terraform and its management of DNS in Cloudflare
2017-06-09 23:37:49 +00:00
#### automatedbytes.com
resource "cloudflare_zone" "automatedbytes_com" {
zone = "automatedbytes.com"
}
2017-06-29 05:21:12 +00:00
2022-03-31 02:59:31 +00:00
resource "cloudflare_record" "automatedbytes" {
zone_id = cloudflare_zone.automatedbytes_com.id
name = "automatedbytes.com"
type = "A"
ttl = "1"
value = var.home_ip
}
2021-05-19 02:54:54 +00:00
resource "cloudflare_record" "assets_automatedbytes" {
zone_id = cloudflare_zone.automatedbytes_com.id
name = "assets"
type = "A"
proxied = false
value = var.do_assets
2021-05-19 02:54:54 +00:00
}
2021-05-19 03:33:07 +00:00
resource "cloudflare_record" "assets_api_automatedbytes" {
zone_id = cloudflare_zone.automatedbytes_com.id
name = "assets-api"
type = "A"
proxied = false
value = var.do_assets
2021-05-19 03:33:07 +00:00
}
resource "cloudflare_record" "assets_mesh_automatedbytes" {
zone_id = cloudflare_zone.automatedbytes_com.id
name = "assets-mesh"
type = "A"
proxied = false
value = var.do_assets
2021-05-19 03:33:07 +00:00
}
resource "cloudflare_record" "support_automatedbytes" {
zone_id = cloudflare_zone.automatedbytes_com.id
name = "support"
type = "A"
proxied = true
value = var.home_ip
2020-11-25 05:39:55 +00:00
}
2021-12-22 19:21:32 +00:00
resource "cloudflare_record" "itmanagement_automatedbytes" {
zone_id = cloudflare_zone.automatedbytes_com.id
name = "itmanagement"
type = "CNAME"
ttl = "1"
proxied = true
2021-12-22 19:25:44 +00:00
value = join(".", [cloudflare_record.support_automatedbytes.name, cloudflare_zone.automatedbytes_com.zone])
2021-12-22 19:21:32 +00:00
}