From 52a1dd874103fdd89fea5329ab346534e1a62423 Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Mon, 10 Jun 2019 01:54:16 -0400 Subject: [PATCH] Moving ahoskingit.com to Cloudflare --- ahoskingit/terraform/dns_ahoskingit.tf | 19 +- ahoskingit/terraform/terraform.tfstate | 125 ++++---- ahoskingit/terraform/terraform.tfstate.backup | 293 ++++++++++++++++-- 3 files changed, 344 insertions(+), 93 deletions(-) diff --git a/ahoskingit/terraform/dns_ahoskingit.tf b/ahoskingit/terraform/dns_ahoskingit.tf index 79d7b3d..eb10dab 100644 --- a/ahoskingit/terraform/dns_ahoskingit.tf +++ b/ahoskingit/terraform/dns_ahoskingit.tf @@ -5,20 +5,21 @@ resource "aws_route53_zone" "ahoskingit" { name = "ahoskingit.com" } -resource "aws_route53_record" "ahoskingit" { - zone_id = "${aws_route53_zone.ahoskingit.zone_id}" +resource "cloudflare_record" "ahoskingit" { + domain = "ahoskingit.com" name = "ahoskingit.com" type = "A" - ttl = "5" - records = ["${var.site5_ip}"] + ttl = "1" + value = "${var.site5_ip}" + proxied = "true" } -resource "aws_route53_record" "ahoskingit_www" { - zone_id = "${aws_route53_zone.ahoskingit.zone_id}" - name = "www.ahoskingit.com" +resource "cloudflare_record" "ahoskingit_www" { + domain = "ahoskingit.com" + name = "www" type = "CNAME" - ttl = "5" - records = ["${aws_route53_record.ahoskingit.name}"] + value = "${cloudflare_record.ahoskingit.name}" + proxied = "true" } resource "aws_route53_record" "home_ahoskingit" { diff --git a/ahoskingit/terraform/terraform.tfstate b/ahoskingit/terraform/terraform.tfstate index cdc73cd..db2e304 100644 --- a/ahoskingit/terraform/terraform.tfstate +++ b/ahoskingit/terraform/terraform.tfstate @@ -1,7 +1,7 @@ { "version": 3, "terraform_version": "0.11.11", - "serial": 34, + "serial": 39, "lineage": "db7d87ff-3078-47ed-a0a9-91749a2dbba5", "modules": [ { @@ -123,33 +123,6 @@ "deposed": [], "provider": "provider.aws" }, - "aws_route53_record.ahoskingit": { - "type": "aws_route53_record", - "depends_on": [ - "aws_route53_zone.ahoskingit" - ], - "primary": { - "id": "Z2HTSYFXB5HXD9_ahoskingit.com_A", - "attributes": { - "fqdn": "ahoskingit.com", - "health_check_id": "", - "id": "Z2HTSYFXB5HXD9_ahoskingit.com_A", - "name": "ahoskingit.com", - "records.#": "1", - "records.1137503267": "138.197.154.98", - "set_identifier": "", - "ttl": "5", - "type": "A", - "zone_id": "Z2HTSYFXB5HXD9" - }, - "meta": { - "schema_version": "2" - }, - "tainted": false - }, - "deposed": [], - "provider": "provider.aws" - }, "aws_route53_record.ahoskingit_ca": { "type": "aws_route53_record", "depends_on": [ @@ -321,34 +294,6 @@ "deposed": [], "provider": "provider.aws" }, - "aws_route53_record.ahoskingit_www": { - "type": "aws_route53_record", - "depends_on": [ - "aws_route53_record.ahoskingit", - "aws_route53_zone.ahoskingit" - ], - "primary": { - "id": "Z2HTSYFXB5HXD9_www.ahoskingit.com_CNAME", - "attributes": { - "fqdn": "www.ahoskingit.com", - "health_check_id": "", - "id": "Z2HTSYFXB5HXD9_www.ahoskingit.com_CNAME", - "name": "www.ahoskingit.com", - "records.#": "1", - "records.60493534": "ahoskingit.com", - "set_identifier": "", - "ttl": "5", - "type": "CNAME", - "zone_id": "Z2HTSYFXB5HXD9" - }, - "meta": { - "schema_version": "2" - }, - "tainted": false - }, - "deposed": [], - "provider": "provider.aws" - }, "aws_route53_record.automatedbytes": { "type": "aws_route53_record", "depends_on": [ @@ -1344,6 +1289,74 @@ "deposed": [], "provider": "provider.aws" }, + "cloudflare_record.ahoskingit": { + "type": "cloudflare_record", + "depends_on": [], + "primary": { + "id": "5bc36daaee10ee8003c9cee169aea283", + "attributes": { + "created_on": "2019-06-10T05:50:18.976039Z", + "data.%": "0", + "domain": "ahoskingit.com", + "hostname": "ahoskingit.com", + "id": "5bc36daaee10ee8003c9cee169aea283", + "metadata.%": "3", + "metadata.auto_added": "false", + "metadata.managed_by_apps": "false", + "metadata.managed_by_argo_tunnel": "false", + "modified_on": "2019-06-10T05:50:18.976039Z", + "name": "ahoskingit.com", + "priority": "0", + "proxiable": "true", + "proxied": "true", + "ttl": "1", + "type": "A", + "value": "138.197.154.98", + "zone_id": "6b3fe5493c79efccf633719ab48ef00f" + }, + "meta": { + "schema_version": "1" + }, + "tainted": false + }, + "deposed": [], + "provider": "provider.cloudflare" + }, + "cloudflare_record.ahoskingit_www": { + "type": "cloudflare_record", + "depends_on": [ + "cloudflare_record.ahoskingit" + ], + "primary": { + "id": "551ee2110b9d935a1e50147d72159085", + "attributes": { + "created_on": "2019-06-10T05:53:26.229572Z", + "data.%": "0", + "domain": "ahoskingit.com", + "hostname": "www.ahoskingit.com", + "id": "551ee2110b9d935a1e50147d72159085", + "metadata.%": "3", + "metadata.auto_added": "false", + "metadata.managed_by_apps": "false", + "metadata.managed_by_argo_tunnel": "false", + "modified_on": "2019-06-10T05:53:26.229572Z", + "name": "www", + "priority": "0", + "proxiable": "true", + "proxied": "true", + "ttl": "1", + "type": "CNAME", + "value": "ahoskingit.com", + "zone_id": "6b3fe5493c79efccf633719ab48ef00f" + }, + "meta": { + "schema_version": "1" + }, + "tainted": false + }, + "deposed": [], + "provider": "provider.cloudflare" + }, "cloudflare_record.studi-o_ca_mx": { "type": "cloudflare_record", "depends_on": [], diff --git a/ahoskingit/terraform/terraform.tfstate.backup b/ahoskingit/terraform/terraform.tfstate.backup index 1a4e81a..97ce64e 100755 --- a/ahoskingit/terraform/terraform.tfstate.backup +++ b/ahoskingit/terraform/terraform.tfstate.backup @@ -1,7 +1,7 @@ { "version": 3, "terraform_version": "0.11.11", - "serial": 34, + "serial": 39, "lineage": "db7d87ff-3078-47ed-a0a9-91749a2dbba5", "modules": [ { @@ -123,33 +123,6 @@ "deposed": [], "provider": "provider.aws" }, - "aws_route53_record.ahoskingit": { - "type": "aws_route53_record", - "depends_on": [ - "aws_route53_zone.ahoskingit" - ], - "primary": { - "id": "Z2HTSYFXB5HXD9_ahoskingit.com_A", - "attributes": { - "fqdn": "ahoskingit.com", - "health_check_id": "", - "id": "Z2HTSYFXB5HXD9_ahoskingit.com_A", - "name": "ahoskingit.com", - "records.#": "1", - "records.1137503267": "138.197.154.98", - "set_identifier": "", - "ttl": "5", - "type": "A", - "zone_id": "Z2HTSYFXB5HXD9" - }, - "meta": { - "schema_version": "2" - }, - "tainted": false - }, - "deposed": [], - "provider": "provider.aws" - }, "aws_route53_record.ahoskingit_ca": { "type": "aws_route53_record", "depends_on": [ @@ -1344,6 +1317,270 @@ "deposed": [], "provider": "provider.aws" }, + "cloudflare_record.ahoskingit": { + "type": "cloudflare_record", + "depends_on": [], + "primary": { + "id": "5bc36daaee10ee8003c9cee169aea283", + "attributes": { + "created_on": "2019-06-10T05:50:18.976039Z", + "data.%": "0", + "domain": "ahoskingit.com", + "hostname": "ahoskingit.com", + "id": "5bc36daaee10ee8003c9cee169aea283", + "metadata.%": "3", + "metadata.auto_added": "false", + "metadata.managed_by_apps": "false", + "metadata.managed_by_argo_tunnel": "false", + "modified_on": "2019-06-10T05:50:18.976039Z", + "name": "ahoskingit.com", + "priority": "0", + "proxiable": "true", + "proxied": "true", + "ttl": "1", + "type": "A", + "value": "138.197.154.98", + "zone_id": "6b3fe5493c79efccf633719ab48ef00f" + }, + "meta": { + "schema_version": "1" + }, + "tainted": false + }, + "deposed": [], + "provider": "provider.cloudflare" + }, + "cloudflare_record.studi-o_ca_mx": { + "type": "cloudflare_record", + "depends_on": [], + "primary": { + "id": "b3992bc1529e2a0fc30b8e25aaa8cc50", + "attributes": { + "created_on": "2019-06-10T05:24:05.451852Z", + "data.%": "0", + "domain": "studi-odesigns.ca", + "hostname": "studi-odesigns.ca", + "id": "b3992bc1529e2a0fc30b8e25aaa8cc50", + "metadata.%": "3", + "metadata.auto_added": "false", + "metadata.managed_by_apps": "false", + "metadata.managed_by_argo_tunnel": "false", + "modified_on": "2019-06-10T05:24:05.451852Z", + "name": "@", + "priority": "1", + "proxiable": "false", + "proxied": "false", + "ttl": "1", + "type": "MX", + "value": "aspmx.l.google.com", + "zone_id": "02aab148f5778eaf5037dc76fa359eaf" + }, + "meta": { + "schema_version": "1" + }, + "tainted": false + }, + "deposed": [], + "provider": "provider.cloudflare" + }, + "cloudflare_record.studi-o_ca_mx1": { + "type": "cloudflare_record", + "depends_on": [], + "primary": { + "id": "e4678a5ee9e8e9a7e6f70dd66561c908", + "attributes": { + "created_on": "2019-06-10T05:24:06.082682Z", + "data.%": "0", + "domain": "studi-odesigns.ca", + "hostname": "studi-odesigns.ca", + "id": "e4678a5ee9e8e9a7e6f70dd66561c908", + "metadata.%": "3", + "metadata.auto_added": "false", + "metadata.managed_by_apps": "false", + "metadata.managed_by_argo_tunnel": "false", + "modified_on": "2019-06-10T05:24:06.082682Z", + "name": "@", + "priority": "5", + "proxiable": "false", + "proxied": "false", + "ttl": "1", + "type": "MX", + "value": "alt1.aspmx.l.google.com", + "zone_id": "02aab148f5778eaf5037dc76fa359eaf" + }, + "meta": { + "schema_version": "1" + }, + "tainted": false + }, + "deposed": [], + "provider": "provider.cloudflare" + }, + "cloudflare_record.studi-o_ca_mx2": { + "type": "cloudflare_record", + "depends_on": [], + "primary": { + "id": "898895ab552a7bc8a3ddb158ba75d840", + "attributes": { + "created_on": "2019-06-10T05:24:06.552385Z", + "data.%": "0", + "domain": "studi-odesigns.ca", + "hostname": "studi-odesigns.ca", + "id": "898895ab552a7bc8a3ddb158ba75d840", + "metadata.%": "3", + "metadata.auto_added": "false", + "metadata.managed_by_apps": "false", + "metadata.managed_by_argo_tunnel": "false", + "modified_on": "2019-06-10T05:24:06.552385Z", + "name": "@", + "priority": "5", + "proxiable": "false", + "proxied": "false", + "ttl": "1", + "type": "MX", + "value": "alt2.aspmx.l.google.com", + "zone_id": "02aab148f5778eaf5037dc76fa359eaf" + }, + "meta": { + "schema_version": "1" + }, + "tainted": false + }, + "deposed": [], + "provider": "provider.cloudflare" + }, + "cloudflare_record.studi-o_ca_mx3": { + "type": "cloudflare_record", + "depends_on": [], + "primary": { + "id": "eb1ed3885433f20b0f46e2e812d5342a", + "attributes": { + "created_on": "2019-06-10T05:24:06.456658Z", + "data.%": "0", + "domain": "studi-odesigns.ca", + "hostname": "studi-odesigns.ca", + "id": "eb1ed3885433f20b0f46e2e812d5342a", + "metadata.%": "3", + "metadata.auto_added": "false", + "metadata.managed_by_apps": "false", + "metadata.managed_by_argo_tunnel": "false", + "modified_on": "2019-06-10T05:24:06.456658Z", + "name": "@", + "priority": "10", + "proxiable": "false", + "proxied": "false", + "ttl": "1", + "type": "MX", + "value": "aspmx2.googlemail.com", + "zone_id": "02aab148f5778eaf5037dc76fa359eaf" + }, + "meta": { + "schema_version": "1" + }, + "tainted": false + }, + "deposed": [], + "provider": "provider.cloudflare" + }, + "cloudflare_record.studi-o_ca_mx4": { + "type": "cloudflare_record", + "depends_on": [], + "primary": { + "id": "d205b520a740846a7a209ef779f765dc", + "attributes": { + "created_on": "2019-06-10T05:24:06.8103Z", + "data.%": "0", + "domain": "studi-odesigns.ca", + "hostname": "studi-odesigns.ca", + "id": "d205b520a740846a7a209ef779f765dc", + "metadata.%": "3", + "metadata.auto_added": "false", + "metadata.managed_by_apps": "false", + "metadata.managed_by_argo_tunnel": "false", + "modified_on": "2019-06-10T05:24:06.8103Z", + "name": "@", + "priority": "10", + "proxiable": "false", + "proxied": "false", + "ttl": "1", + "type": "MX", + "value": "aspmx3.googlemail.com", + "zone_id": "02aab148f5778eaf5037dc76fa359eaf" + }, + "meta": { + "schema_version": "1" + }, + "tainted": false + }, + "deposed": [], + "provider": "provider.cloudflare" + }, + "cloudflare_record.studi-o_ca_txt": { + "type": "cloudflare_record", + "depends_on": [], + "primary": { + "id": "30abde3222dd86fd292e7bb4fb7ae365", + "attributes": { + "created_on": "2019-06-10T05:24:05.413445Z", + "data.%": "0", + "domain": "studi-odesigns.ca", + "hostname": "studi-odesigns.ca", + "id": "30abde3222dd86fd292e7bb4fb7ae365", + "metadata.%": "3", + "metadata.auto_added": "false", + "metadata.managed_by_apps": "false", + "metadata.managed_by_argo_tunnel": "false", + "modified_on": "2019-06-10T05:24:05.413445Z", + "name": "@", + "priority": "0", + "proxiable": "false", + "proxied": "false", + "ttl": "120", + "type": "TXT", + "value": "google-site-verification=1VQq6Qc0OSpPKs_cd9nKIAGiTw9I7uQbmwnlGd44yo8", + "zone_id": "02aab148f5778eaf5037dc76fa359eaf" + }, + "meta": { + "schema_version": "1" + }, + "tainted": false + }, + "deposed": [], + "provider": "provider.cloudflare" + }, + "cloudflare_record.studi-o_ca_www": { + "type": "cloudflare_record", + "depends_on": [], + "primary": { + "id": "81905135586fc124e574dc08fce37ab5", + "attributes": { + "created_on": "2019-06-10T05:24:06.516289Z", + "data.%": "0", + "domain": "studi-odesigns.ca", + "hostname": "www.studi-odesigns.ca", + "id": "81905135586fc124e574dc08fce37ab5", + "metadata.%": "3", + "metadata.auto_added": "false", + "metadata.managed_by_apps": "false", + "metadata.managed_by_argo_tunnel": "false", + "modified_on": "2019-06-10T05:24:06.516289Z", + "name": "www", + "priority": "0", + "proxiable": "true", + "proxied": "false", + "ttl": "3600", + "type": "CNAME", + "value": "automatedbytes.com", + "zone_id": "02aab148f5778eaf5037dc76fa359eaf" + }, + "meta": { + "schema_version": "1" + }, + "tainted": false + }, + "deposed": [], + "provider": "provider.cloudflare" + }, "cloudflare_record.studi-o_com_mx": { "type": "cloudflare_record", "depends_on": [],