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

View File

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

View File

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