Adds necessary automatedbytes cloudflare

This commit is contained in:
Alexander Hosking 2019-10-16 17:24:47 -04:00
parent 323ef2b292
commit 4e3b1e65ba
3 changed files with 58 additions and 44 deletions

View File

@ -62,32 +62,11 @@ resource "aws_route53_record" "mx_automatedbytes" {
"10 ALT4.ASPMX.L.GOOGLE.COM"] "10 ALT4.ASPMX.L.GOOGLE.COM"]
} }
### automatedbytes.ca resource "cloudflare_record" "support_automatedbytes" {
#Setup the domain in route53 domain = "${cloudflare_zone.automatedbytes_com.zone}"
#resource "aws_route53_zone" "automatedbytes_ca" { name = "support"
# name = "automatedbytes.ca" type = "A"
#} proxied = true
# value = "${var.home_ip}"
#resource "aws_route53_record" "automatedbytes_ca" { }
# zone_id = "${aws_route53_zone.automatedbytes_ca.zone_id}"
# name = "automatedbytes.ca"
# type = "A"
# ttl = "5"
# records = ["${var.home_ip}"]
#}
#
#resource "aws_route53_record" "www_automatedbytes_ca" {
# zone_id = "${aws_route53_zone.automatedbytes_ca.zone_id}"
# name = "www.automatedbytes.ca"
# type = "CNAME"
# ttl = "5"
# records = ["${aws_route53_record.automatedbytes_ca.name}"]
#}
#
#resource "aws_route53_record" "wildcard_automatedbytes_ca" {
# zone_id = "${aws_route53_zone.automatedbytes_ca.zone_id}"
# name = "*.automatedbytes.ca"
# type = "CNAME"
# ttl = "5"
# records = ["${aws_route53_record.automatedbytes_ca.name}"]
#}

View File

@ -1,7 +1,7 @@
{ {
"version": 3, "version": 3,
"terraform_version": "0.11.11", "terraform_version": "0.11.11",
"serial": 66, "serial": 67,
"lineage": "db7d87ff-3078-47ed-a0a9-91749a2dbba5", "lineage": "db7d87ff-3078-47ed-a0a9-91749a2dbba5",
"modules": [ "modules": [
{ {
@ -2072,6 +2072,41 @@
"deposed": [], "deposed": [],
"provider": "provider.cloudflare" "provider": "provider.cloudflare"
}, },
"cloudflare_record.support_automatedbytes": {
"type": "cloudflare_record",
"depends_on": [
"cloudflare_zone.automatedbytes_com"
],
"primary": {
"id": "da8a433e85dbc7805a86ec622557475a",
"attributes": {
"created_on": "2019-10-16T21:18:00.996411Z",
"data.%": "0",
"domain": "automatedbytes.com",
"hostname": "support.automatedbytes.com",
"id": "da8a433e85dbc7805a86ec622557475a",
"metadata.%": "3",
"metadata.auto_added": "false",
"metadata.managed_by_apps": "false",
"metadata.managed_by_argo_tunnel": "false",
"modified_on": "2019-10-16T21:18:00.996411Z",
"name": "support",
"priority": "0",
"proxiable": "true",
"proxied": "true",
"ttl": "1",
"type": "A",
"value": "70.27.17.5",
"zone_id": "17ce22c4db27214cd0ec8f490fe07404"
},
"meta": {
"schema_version": "1"
},
"tainted": false
},
"deposed": [],
"provider": "provider.cloudflare"
},
"cloudflare_zone.ahoskingit_com": { "cloudflare_zone.ahoskingit_com": {
"type": "cloudflare_zone", "type": "cloudflare_zone",
"depends_on": [], "depends_on": [],

View File

@ -1,7 +1,7 @@
{ {
"version": 3, "version": 3,
"terraform_version": "0.11.11", "terraform_version": "0.11.11",
"serial": 66, "serial": 67,
"lineage": "db7d87ff-3078-47ed-a0a9-91749a2dbba5", "lineage": "db7d87ff-3078-47ed-a0a9-91749a2dbba5",
"modules": [ "modules": [
{ {
@ -388,7 +388,7 @@
"id": "Z1K67K6B7LVE6O_home.ahoskingit.ca_A", "id": "Z1K67K6B7LVE6O_home.ahoskingit.ca_A",
"name": "home.ahoskingit.ca", "name": "home.ahoskingit.ca",
"records.#": "1", "records.#": "1",
"records.650099559": "70.31.147.126", "records.3340628564": "70.27.17.5",
"set_identifier": "", "set_identifier": "",
"ttl": "5", "ttl": "5",
"type": "A", "type": "A",
@ -585,7 +585,7 @@
"id": "Z1H1ULBVLBNLL2_support.automatedbytes.com_A", "id": "Z1H1ULBVLBNLL2_support.automatedbytes.com_A",
"name": "support.automatedbytes.com", "name": "support.automatedbytes.com",
"records.#": "1", "records.#": "1",
"records.650099559": "70.31.147.126", "records.3340628564": "70.27.17.5",
"set_identifier": "", "set_identifier": "",
"ttl": "5", "ttl": "5",
"type": "A", "type": "A",
@ -1155,25 +1155,25 @@
"cloudflare_zone.ahoskingit_com" "cloudflare_zone.ahoskingit_com"
], ],
"primary": { "primary": {
"id": "382ecfc0a65c07da256d93cbb65d3ea9", "id": "275b11fceee4a282df623ee07b4052eb",
"attributes": { "attributes": {
"created_on": "2019-08-30T15:13:38.371218Z", "created_on": "2019-10-16T20:57:00.924167Z",
"data.%": "0", "data.%": "0",
"domain": "ahoskingit.com", "domain": "ahoskingit.com",
"hostname": "git.ahoskingit.com", "hostname": "git.ahoskingit.com",
"id": "382ecfc0a65c07da256d93cbb65d3ea9", "id": "275b11fceee4a282df623ee07b4052eb",
"metadata.%": "3", "metadata.%": "3",
"metadata.auto_added": "false", "metadata.auto_added": "false",
"metadata.managed_by_apps": "false", "metadata.managed_by_apps": "false",
"metadata.managed_by_argo_tunnel": "false", "metadata.managed_by_argo_tunnel": "false",
"modified_on": "2019-08-30T15:13:38.371218Z", "modified_on": "2019-10-16T20:57:00.924167Z",
"name": "git", "name": "git",
"priority": "0", "priority": "0",
"proxiable": "true", "proxiable": "true",
"proxied": "false", "proxied": "false",
"ttl": "1", "ttl": "1",
"type": "A", "type": "A",
"value": "70.31.147.126", "value": "70.27.17.5",
"zone_id": "6b3fe5493c79efccf633719ab48ef00f" "zone_id": "6b3fe5493c79efccf633719ab48ef00f"
}, },
"meta": { "meta": {
@ -1264,7 +1264,7 @@
"primary": { "primary": {
"id": "dafe7c2cfd1d00a6a8115bfaeed572ae", "id": "dafe7c2cfd1d00a6a8115bfaeed572ae",
"attributes": { "attributes": {
"created_on": "2019-08-30T15:13:37.985299Z", "created_on": "2019-10-16T20:57:00.618795Z",
"data.%": "0", "data.%": "0",
"domain": "ahoskingit.com", "domain": "ahoskingit.com",
"hostname": "home.ahoskingit.com", "hostname": "home.ahoskingit.com",
@ -1273,14 +1273,14 @@
"metadata.auto_added": "false", "metadata.auto_added": "false",
"metadata.managed_by_apps": "false", "metadata.managed_by_apps": "false",
"metadata.managed_by_argo_tunnel": "false", "metadata.managed_by_argo_tunnel": "false",
"modified_on": "2019-08-30T15:13:37.985299Z", "modified_on": "2019-10-16T20:57:00.618795Z",
"name": "home", "name": "home",
"priority": "0", "priority": "0",
"proxiable": "true", "proxiable": "true",
"proxied": "true", "proxied": "true",
"ttl": "1", "ttl": "1",
"type": "A", "type": "A",
"value": "70.31.147.126", "value": "70.27.17.5",
"zone_id": "6b3fe5493c79efccf633719ab48ef00f" "zone_id": "6b3fe5493c79efccf633719ab48ef00f"
}, },
"meta": { "meta": {
@ -1406,7 +1406,7 @@
"primary": { "primary": {
"id": "7e209dc77cac1ecf00ae79137228478b", "id": "7e209dc77cac1ecf00ae79137228478b",
"attributes": { "attributes": {
"created_on": "2019-08-30T15:13:38.399032Z", "created_on": "2019-10-16T20:57:00.494642Z",
"data.%": "0", "data.%": "0",
"domain": "ahoskingit.com", "domain": "ahoskingit.com",
"hostname": "logs.ahoskingit.com", "hostname": "logs.ahoskingit.com",
@ -1415,14 +1415,14 @@
"metadata.auto_added": "false", "metadata.auto_added": "false",
"metadata.managed_by_apps": "false", "metadata.managed_by_apps": "false",
"metadata.managed_by_argo_tunnel": "false", "metadata.managed_by_argo_tunnel": "false",
"modified_on": "2019-08-30T15:13:38.399032Z", "modified_on": "2019-10-16T20:57:00.494642Z",
"name": "logs", "name": "logs",
"priority": "0", "priority": "0",
"proxiable": "true", "proxiable": "true",
"proxied": "true", "proxied": "true",
"ttl": "1", "ttl": "1",
"type": "A", "type": "A",
"value": "70.31.147.126", "value": "70.27.17.5",
"zone_id": "6b3fe5493c79efccf633719ab48ef00f" "zone_id": "6b3fe5493c79efccf633719ab48ef00f"
}, },
"meta": { "meta": {