Adds Zones to Cloudflare
Finishes converting ahoskingit.com to Cloudflare
This commit is contained in:
parent
c853ee769e
commit
648bbdf626
@ -1,12 +1,12 @@
|
|||||||
#Terraform and its management of DNS in route53
|
#Terraform and its management of DNS in route53
|
||||||
|
|
||||||
#Setup the domain in route53
|
#Setup the domain in route53
|
||||||
resource "aws_route53_zone" "ahoskingit" {
|
resource "cloudflare_zone" "ahoskingit_com" {
|
||||||
name = "ahoskingit.com"
|
zone = "ahoskingit.com"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "cloudflare_record" "ahoskingit" {
|
resource "cloudflare_record" "ahoskingit" {
|
||||||
domain = "ahoskingit.com"
|
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
name = "ahoskingit.com"
|
name = "ahoskingit.com"
|
||||||
type = "A"
|
type = "A"
|
||||||
ttl = "1"
|
ttl = "1"
|
||||||
@ -15,7 +15,7 @@ resource "cloudflare_record" "ahoskingit" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "cloudflare_record" "ahoskingit_www" {
|
resource "cloudflare_record" "ahoskingit_www" {
|
||||||
domain = "ahoskingit.com"
|
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
name = "www"
|
name = "www"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
value = "${cloudflare_record.ahoskingit.name}"
|
value = "${cloudflare_record.ahoskingit.name}"
|
||||||
@ -23,7 +23,7 @@ resource "cloudflare_record" "ahoskingit_www" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "cloudflare_record" "ahoskingit_influx" {
|
resource "cloudflare_record" "ahoskingit_influx" {
|
||||||
domain = "ahoskingit.com"
|
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
name = "influx"
|
name = "influx"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
value = "home.ahoskingit.com"
|
value = "home.ahoskingit.com"
|
||||||
@ -38,166 +38,174 @@ resource "cloudflare_record" "ahoskingit_influx" {
|
|||||||
# proxied = "true" #A records cannot be proxied if wildcard
|
# proxied = "true" #A records cannot be proxied if wildcard
|
||||||
#}
|
#}
|
||||||
|
|
||||||
resource "aws_route53_record" "home_ahoskingit" {
|
resource "cloudflare_record" "ahoskingit_plex" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
name = "home.ahoskingit.com"
|
|
||||||
type = "A"
|
|
||||||
ttl = "5"
|
|
||||||
records = ["${var.home_ip}"]
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "aws_route53_record" "baby_ahoskingit" {
|
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
|
||||||
name = "baby.ahoskingit.com"
|
|
||||||
type = "A"
|
|
||||||
ttl = "5"
|
|
||||||
records = ["${var.home_ip}"]
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "aws_route53_record" "kfa_ahoskingit" {
|
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
|
||||||
name = "kfa.ahoskingit.com"
|
|
||||||
type = "A"
|
|
||||||
ttl = "5"
|
|
||||||
records = ["${var.kfa_ip}"]
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "aws_route53_record" "lab_ahoskingit" {
|
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
|
||||||
name = "lab.ahoskingit.com"
|
|
||||||
type = "CNAME"
|
|
||||||
ttl = "5"
|
|
||||||
records = ["${aws_route53_record.kfa_ahoskingit.name}"]
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "aws_route53_record" "logs_ahoskingit" {
|
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
|
||||||
name = "logs.ahoskingit.com"
|
|
||||||
type = "A"
|
|
||||||
ttl = "5"
|
|
||||||
records = ["${var.home_ip}"]
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "aws_route53_record" "inventory_ahoskingit" {
|
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
|
||||||
name = "inventory.ahoskingit.com"
|
|
||||||
type = "CNAME"
|
|
||||||
ttl = "5"
|
|
||||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "aws_route53_record" "requests_plex_ahoskingit" {
|
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
|
||||||
name = "requests.plex.ahoskingit.com"
|
|
||||||
type = "CNAME"
|
|
||||||
ttl = "5"
|
|
||||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
|
||||||
}
|
|
||||||
resource "aws_route53_record" "plex_ahoskingit" {
|
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
|
||||||
name = "plex.ahoskingit.com"
|
name = "plex.ahoskingit.com"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
ttl = "5"
|
value = "home.ahoskingit.com"
|
||||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
proxied = "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_route53_record" "ns1_ahoskingit" {
|
resource "cloudflare_record" "home_ahoskingit" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
name = "ns1.ahoskingit.com"
|
name = "home"
|
||||||
|
type = "A"
|
||||||
|
value = "${var.home_ip}"
|
||||||
|
proxied = "true"
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "cloudflare_record" "kfa_ahoskingit" {
|
||||||
|
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
name = "kfa"
|
||||||
|
type = "A"
|
||||||
|
value = "${var.kfa_ip}"
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "cloudflare_record" "lab_ahoskingit" {
|
||||||
|
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
name = "lab"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
ttl = "5"
|
proxied = true
|
||||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
value = "${cloudflare_record.kfa_ahoskingit.name}.${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_route53_record" "docs_ahoskingit" {
|
resource "cloudflare_record" "logs_ahoskingit" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
name = "docs.ahoskingit.com"
|
name = "logs"
|
||||||
|
type = "A"
|
||||||
|
proxied = true
|
||||||
|
value = "${var.home_ip}"
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "cloudflare_record" "inventory_ahoskingit" {
|
||||||
|
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
name = "inventory"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
ttl = "5"
|
proxied = true
|
||||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
value = "${cloudflare_record.home_ahoskingit.name}.${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_route53_record" "cloud_ahoskingit" {
|
# resource "cloudflare_record" "requests_plex_ahoskingit" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
# domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
name = "cloud.ahoskingit.com"
|
# name = "requests.plex"
|
||||||
type = "CNAME"
|
# type = "CNAME"
|
||||||
ttl = "5"
|
# proxied = true
|
||||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
# value = "${cloudflare_record.home_ahoskingit.name}"
|
||||||
}
|
|
||||||
|
|
||||||
resource "aws_route53_record" "goals_ahoskingit" {
|
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
|
||||||
name = "goals.ahoskingit.com"
|
|
||||||
type = "CNAME"
|
|
||||||
ttl = "5"
|
|
||||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "aws_route53_record" "office_ahoskingit" {
|
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
|
||||||
name = "office.ahoskingit.com"
|
|
||||||
type = "CNAME"
|
|
||||||
ttl = "5"
|
|
||||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "aws_route53_record" "support_ahoskingit" {
|
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
|
||||||
name = "support.ahoskingit.com"
|
|
||||||
type = "CNAME"
|
|
||||||
ttl = "5"
|
|
||||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "aws_route53_record" "git_ahoskingit" {
|
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
|
||||||
name = "git.ahoskingit.com"
|
|
||||||
type = "CNAME"
|
|
||||||
ttl = "5"
|
|
||||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "aws_route53_record" "gitlab_ahoskingit" {
|
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
|
||||||
name = "gitlab"
|
|
||||||
type = "CNAME"
|
|
||||||
ttl = "5"
|
|
||||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "aws_route53_record" "monitors_ahoskingit" {
|
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
|
||||||
name = "monitors.ahoskingit.com"
|
|
||||||
type = "CNAME"
|
|
||||||
ttl = "5"
|
|
||||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
|
||||||
}
|
|
||||||
|
|
||||||
#Route53 DNS entry
|
|
||||||
#resource "aws_route53_record" "www_ahoskingit" {
|
|
||||||
# zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
|
||||||
# name = "www.ahoskingit.com"
|
|
||||||
# type = "A"
|
|
||||||
# ttl = "5"
|
|
||||||
# records = ["${var.home_ip}"]
|
|
||||||
# }
|
# }
|
||||||
|
|
||||||
|
resource "cloudflare_record" "ns1_ahoskingit" {
|
||||||
|
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
name = "ns1"
|
||||||
|
type = "CNAME"
|
||||||
|
proxied = true
|
||||||
|
value = "${cloudflare_record.home_ahoskingit.name}.${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "cloudflare_record" "docs_ahoskingit" {
|
||||||
|
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
name = "docs"
|
||||||
|
type = "CNAME"
|
||||||
|
proxied = true
|
||||||
|
value = "${cloudflare_record.home_ahoskingit.name}.${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "cloudflare_record" "cloud_ahoskingit" {
|
||||||
|
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
name = "cloud"
|
||||||
|
type = "CNAME"
|
||||||
|
proxied = true
|
||||||
|
value = "${cloudflare_record.home_ahoskingit.name}.${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "cloudflare_record" "goals_ahoskingit" {
|
||||||
|
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
name = "goals"
|
||||||
|
type = "CNAME"
|
||||||
|
proxied = true
|
||||||
|
value = "${cloudflare_record.home_ahoskingit.name}.${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "cloudflare_record" "office_ahoskingit" {
|
||||||
|
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
name = "office"
|
||||||
|
type = "CNAME"
|
||||||
|
proxied = true
|
||||||
|
value = "${cloudflare_record.home_ahoskingit.name}.${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "cloudflare_record" "support_ahoskingit" {
|
||||||
|
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
name = "support"
|
||||||
|
type = "CNAME"
|
||||||
|
proxied = true
|
||||||
|
value = "${cloudflare_record.home_ahoskingit.name}.${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "cloudflare_record" "git_ahoskingit" {
|
||||||
|
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
name = "git"
|
||||||
|
type = "CNAME"
|
||||||
|
proxied = true
|
||||||
|
value = "${cloudflare_record.home_ahoskingit.name}.${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "cloudflare_record" "gitlab_ahoskingit" {
|
||||||
|
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
name = "gitlab"
|
||||||
|
type = "CNAME"
|
||||||
|
proxied = true
|
||||||
|
value = "${cloudflare_record.home_ahoskingit.name}.${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "cloudflare_record" "monitors_ahoskingit" {
|
||||||
|
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
name = "monitors"
|
||||||
|
type = "CNAME"
|
||||||
|
value = "${cloudflare_record.home_ahoskingit.name}.${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
proxied = true
|
||||||
|
}
|
||||||
|
|
||||||
# email MX records for DNS
|
# email MX records for DNS
|
||||||
resource "aws_route53_record" "ahoskingit_mx" {
|
resource "cloudflare_record" "ahoskingit_com_mx" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
name = "${aws_route53_zone.ahoskingit.name}"
|
name = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
type = "MX"
|
type = "MX"
|
||||||
ttl = "60"
|
value = "aspmx.l.google.com"
|
||||||
records = ["1 ASPMX.L.GOOGLE.COM",
|
priority = 1
|
||||||
"5 ALT1.ASPMX.L.GOOGLE.COM",
|
|
||||||
"5 ALT2.ASPMX.L.GOOGLE.COM",
|
|
||||||
"10 ALT3.ASPMX.L.GOOGLE.COM",
|
|
||||||
"10 ALT4.ASPMX.L.GOOGLE.COM"]
|
|
||||||
}
|
}
|
||||||
resource "aws_route53_record" "ahoskingit_txt" {
|
resource "cloudflare_record" "ahoskingit_com_mx1" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
name = "${aws_route53_zone.ahoskingit.name}"
|
name = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
type = "MX"
|
||||||
|
value = "alt1.aspmx.l.google.com"
|
||||||
|
priority = 5
|
||||||
|
}
|
||||||
|
resource "cloudflare_record" "ahoskingit_com_mx2" {
|
||||||
|
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
name = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
type = "MX"
|
||||||
|
value = "alt2.aspmx.l.google.com"
|
||||||
|
priority = 5
|
||||||
|
}
|
||||||
|
resource "cloudflare_record" "ahoskingit_com_mx3" {
|
||||||
|
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
name = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
type = "MX"
|
||||||
|
value = "alt3.aspmx.l.google.com"
|
||||||
|
priority = 10
|
||||||
|
}
|
||||||
|
resource "cloudflare_record" "ahoskingit_com_mx4" {
|
||||||
|
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
name = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
type = "MX"
|
||||||
|
value = "alt4.aspmx.l.google.com"
|
||||||
|
priority = 10
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "cloudflare_record" "ahoskingit_com_txt" {
|
||||||
|
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
|
name = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||||
type = "TXT"
|
type = "TXT"
|
||||||
ttl = "60"
|
ttl = 120
|
||||||
records = ["google-site-verification=8-QKnBQElI58gnygDWcCzvDGRh31c_bFmNMaSd0fCwE"]
|
value = "google-site-verification=8-QKnBQElI58gnygDWcCzvDGRh31c_bFmNMaSd0fCwE"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
##Terraform and its management of DNS in route53
|
##Terraform and its management of DNS in route53
|
||||||
#### automatedbytes.com
|
#### automatedbytes.com
|
||||||
##Setup the domain in route53
|
##Setup the domain in route53
|
||||||
|
resource "cloudflare_zone" "automatedbytes_com" {
|
||||||
|
zone = "automatedbytes.com"
|
||||||
|
}
|
||||||
resource "aws_route53_zone" "automatedbytes" {
|
resource "aws_route53_zone" "automatedbytes" {
|
||||||
name = "automatedbytes.com"
|
name = "automatedbytes.com"
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
resource "cloudflare_zone" "studi-o_com" {
|
||||||
|
zone = "studi-odesigns.com"
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "cloudflare_zone" "studi-o_ca" {
|
||||||
|
zone = "studi-odesigns.ca"
|
||||||
|
}
|
||||||
resource "cloudflare_record" "studi-o_com_www" {
|
resource "cloudflare_record" "studi-o_com_www" {
|
||||||
domain = "${var.studi-odesigns_com}"
|
domain = "${var.studi-odesigns_com}"
|
||||||
name = "www"
|
name = "www"
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user