Remove the nested home subdomain

This commit is contained in:
Ahosking 2021-05-21 17:20:04 -04:00
parent 140f7828ee
commit 781e8089d0
3 changed files with 30 additions and 30 deletions

View File

@ -81,7 +81,7 @@ resource "cloudflare_record" "home_ahoskingit" {
### Home Subdomains ### ### Home Subdomains ###
resource "cloudflare_record" "smart_home_ahoskingit" { resource "cloudflare_record" "smart_home_ahoskingit" {
zone_id = cloudflare_zone.ahoskingit_com.id zone_id = cloudflare_zone.ahoskingit_com.id
name = "smart.home" name = "smart"
type = "CNAME" type = "CNAME"
value = join(".", [cloudflare_record.home_ahoskingit.name, cloudflare_zone.ahoskingit_com.zone]) value = join(".", [cloudflare_record.home_ahoskingit.name, cloudflare_zone.ahoskingit_com.zone])
proxied = "true" proxied = "true"
@ -89,7 +89,7 @@ resource "cloudflare_record" "smart_home_ahoskingit" {
resource "cloudflare_record" "temps_home_ahoskingit" { resource "cloudflare_record" "temps_home_ahoskingit" {
zone_id = cloudflare_zone.ahoskingit_com.id zone_id = cloudflare_zone.ahoskingit_com.id
name = "temperatures.home" name = "temperatures"
type = "CNAME" type = "CNAME"
value = join(".", [cloudflare_record.home_ahoskingit.name, cloudflare_zone.ahoskingit_com.zone]) value = join(".", [cloudflare_record.home_ahoskingit.name, cloudflare_zone.ahoskingit_com.zone])
# value = var.home_ip # value = var.home_ip

View File

@ -1,7 +1,7 @@
{ {
"version": 4, "version": 4,
"terraform_version": "0.14.5", "terraform_version": "0.14.5",
"serial": 202, "serial": 208,
"lineage": "db7d87ff-3078-47ed-a0a9-91749a2dbba5", "lineage": "db7d87ff-3078-47ed-a0a9-91749a2dbba5",
"outputs": {}, "outputs": {},
"resources": [ "resources": [
@ -2270,18 +2270,18 @@
{ {
"schema_version": 1, "schema_version": 1,
"attributes": { "attributes": {
"created_on": "2020-01-05T05:35:30.842024Z", "created_on": "2021-05-21T21:04:11.296369Z",
"data": {}, "data": null,
"hostname": "smart.home.ahoskingit.com", "hostname": "smart.ahoskingit.com",
"id": "365d7ff78af893befff26e2aa0af417c", "id": "0f9eb0b229283c7ae12635d704b959e6",
"metadata": { "metadata": {
"auto_added": "false", "auto_added": "false",
"managed_by_apps": "false", "managed_by_apps": "false",
"managed_by_argo_tunnel": "false", "managed_by_argo_tunnel": "false",
"source": "primary" "source": "primary"
}, },
"modified_on": "2020-01-05T05:35:30.842024Z", "modified_on": "2021-05-21T21:04:11.296369Z",
"name": "smart.home", "name": "smart",
"priority": 0, "priority": 0,
"proxiable": true, "proxiable": true,
"proxied": true, "proxied": true,
@ -2292,7 +2292,7 @@
"zone_id": "6b3fe5493c79efccf633719ab48ef00f" "zone_id": "6b3fe5493c79efccf633719ab48ef00f"
}, },
"sensitive_attributes": [], "sensitive_attributes": [],
"private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==", "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMCwidXBkYXRlIjozMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9",
"dependencies": [ "dependencies": [
"cloudflare_record.home_ahoskingit", "cloudflare_record.home_ahoskingit",
"cloudflare_zone.ahoskingit_com" "cloudflare_zone.ahoskingit_com"
@ -2941,18 +2941,18 @@
{ {
"schema_version": 1, "schema_version": 1,
"attributes": { "attributes": {
"created_on": "2020-01-05T05:34:40.383457Z", "created_on": "2021-05-21T21:03:19.221831Z",
"data": {}, "data": {},
"hostname": "temperatures.home.ahoskingit.com", "hostname": "temperatures.ahoskingit.com",
"id": "d8d0dbe76b192ed7536b5772de2d14db", "id": "20fa8ea36fb5268eaa55817389c02a86",
"metadata": { "metadata": {
"auto_added": "false", "auto_added": "false",
"managed_by_apps": "false", "managed_by_apps": "false",
"managed_by_argo_tunnel": "false", "managed_by_argo_tunnel": "false",
"source": "primary" "source": "primary"
}, },
"modified_on": "2020-01-05T05:34:40.383457Z", "modified_on": "2021-05-21T21:03:19.221831Z",
"name": "temperatures.home", "name": "temperatures",
"priority": 0, "priority": 0,
"proxiable": true, "proxiable": true,
"proxied": true, "proxied": true,
@ -2963,7 +2963,7 @@
"zone_id": "6b3fe5493c79efccf633719ab48ef00f" "zone_id": "6b3fe5493c79efccf633719ab48ef00f"
}, },
"sensitive_attributes": [], "sensitive_attributes": [],
"private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==", "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMCwidXBkYXRlIjozMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9",
"dependencies": [ "dependencies": [
"cloudflare_record.home_ahoskingit", "cloudflare_record.home_ahoskingit",
"cloudflare_zone.ahoskingit_com" "cloudflare_zone.ahoskingit_com"

View File

@ -1,7 +1,7 @@
{ {
"version": 4, "version": 4,
"terraform_version": "0.14.5", "terraform_version": "0.14.5",
"serial": 198, "serial": 205,
"lineage": "db7d87ff-3078-47ed-a0a9-91749a2dbba5", "lineage": "db7d87ff-3078-47ed-a0a9-91749a2dbba5",
"outputs": {}, "outputs": {},
"resources": [ "resources": [
@ -1673,7 +1673,7 @@
"managed_by_argo_tunnel": "false", "managed_by_argo_tunnel": "false",
"source": "primary" "source": "primary"
}, },
"modified_on": "2021-05-21T13:04:49.721626Z", "modified_on": "2021-05-21T13:12:25.177863Z",
"name": "assets-api", "name": "assets-api",
"priority": 0, "priority": 0,
"proxiable": true, "proxiable": true,
@ -1681,7 +1681,7 @@
"timeouts": null, "timeouts": null,
"ttl": 1, "ttl": 1,
"type": "A", "type": "A",
"value": "174.91.157.243", "value": "165.22.228.138",
"zone_id": "17ce22c4db27214cd0ec8f490fe07404" "zone_id": "17ce22c4db27214cd0ec8f490fe07404"
}, },
"sensitive_attributes": [], "sensitive_attributes": [],
@ -1711,7 +1711,7 @@
"managed_by_argo_tunnel": "false", "managed_by_argo_tunnel": "false",
"source": "primary" "source": "primary"
}, },
"modified_on": "2021-05-21T13:04:48.266744Z", "modified_on": "2021-05-21T13:12:25.538604Z",
"name": "assets", "name": "assets",
"priority": 0, "priority": 0,
"proxiable": true, "proxiable": true,
@ -1719,7 +1719,7 @@
"timeouts": null, "timeouts": null,
"ttl": 1, "ttl": 1,
"type": "A", "type": "A",
"value": "174.91.157.243", "value": "165.22.228.138",
"zone_id": "17ce22c4db27214cd0ec8f490fe07404" "zone_id": "17ce22c4db27214cd0ec8f490fe07404"
}, },
"sensitive_attributes": [], "sensitive_attributes": [],
@ -1749,7 +1749,7 @@
"managed_by_argo_tunnel": "false", "managed_by_argo_tunnel": "false",
"source": "primary" "source": "primary"
}, },
"modified_on": "2021-05-21T13:04:49.22489Z", "modified_on": "2021-05-21T13:12:25.6552Z",
"name": "assets-mesh", "name": "assets-mesh",
"priority": 0, "priority": 0,
"proxiable": true, "proxiable": true,
@ -1757,7 +1757,7 @@
"timeouts": null, "timeouts": null,
"ttl": 1, "ttl": 1,
"type": "A", "type": "A",
"value": "174.91.157.243", "value": "165.22.228.138",
"zone_id": "17ce22c4db27214cd0ec8f490fe07404" "zone_id": "17ce22c4db27214cd0ec8f490fe07404"
}, },
"sensitive_attributes": [], "sensitive_attributes": [],
@ -2941,18 +2941,18 @@
{ {
"schema_version": 1, "schema_version": 1,
"attributes": { "attributes": {
"created_on": "2020-01-05T05:34:40.383457Z", "created_on": "2021-05-21T21:03:19.221831Z",
"data": {}, "data": null,
"hostname": "temperatures.home.ahoskingit.com", "hostname": "temperatures.ahoskingit.com",
"id": "d8d0dbe76b192ed7536b5772de2d14db", "id": "20fa8ea36fb5268eaa55817389c02a86",
"metadata": { "metadata": {
"auto_added": "false", "auto_added": "false",
"managed_by_apps": "false", "managed_by_apps": "false",
"managed_by_argo_tunnel": "false", "managed_by_argo_tunnel": "false",
"source": "primary" "source": "primary"
}, },
"modified_on": "2020-01-05T05:34:40.383457Z", "modified_on": "2021-05-21T21:03:19.221831Z",
"name": "temperatures.home", "name": "temperatures",
"priority": 0, "priority": 0,
"proxiable": true, "proxiable": true,
"proxied": true, "proxied": true,
@ -2963,7 +2963,7 @@
"zone_id": "6b3fe5493c79efccf633719ab48ef00f" "zone_id": "6b3fe5493c79efccf633719ab48ef00f"
}, },
"sensitive_attributes": [], "sensitive_attributes": [],
"private": "eyJzY2hlbWFfdmVyc2lvbiI6IjEifQ==", "private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMCwidXBkYXRlIjozMDAwMDAwMDAwMH0sInNjaGVtYV92ZXJzaW9uIjoiMSJ9",
"dependencies": [ "dependencies": [
"cloudflare_record.home_ahoskingit", "cloudflare_record.home_ahoskingit",
"cloudflare_zone.ahoskingit_com" "cloudflare_zone.ahoskingit_com"