2022-03-14 02:35:56 +00:00
|
|
|
##Terraform and its management of DNS in Cloudflare
|
2017-06-09 23:37:49 +00:00
|
|
|
#### automatedbytes.com
|
2019-06-14 03:15:54 +00:00
|
|
|
resource "cloudflare_zone" "automatedbytes_com" {
|
2021-10-13 15:00:41 +00:00
|
|
|
zone = "automatedbytes.com"
|
2019-06-14 03:15:54 +00:00
|
|
|
}
|
2017-06-29 05:21:12 +00:00
|
|
|
|
2021-05-19 02:54:54 +00:00
|
|
|
resource "cloudflare_record" "assets_automatedbytes" {
|
2021-10-13 15:00:41 +00:00
|
|
|
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" {
|
2021-10-13 15:00:41 +00:00
|
|
|
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" {
|
2021-10-13 15:00:41 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2019-10-16 21:24:47 +00:00
|
|
|
resource "cloudflare_record" "support_automatedbytes" {
|
2021-10-13 15:00:41 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
|