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
|
||||
|
||||
#Setup the domain in route53
|
||||
resource "aws_route53_zone" "ahoskingit" {
|
||||
name = "ahoskingit.com"
|
||||
resource "cloudflare_zone" "ahoskingit_com" {
|
||||
zone = "ahoskingit.com"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "ahoskingit" {
|
||||
domain = "ahoskingit.com"
|
||||
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||
name = "ahoskingit.com"
|
||||
type = "A"
|
||||
ttl = "1"
|
||||
@ -15,7 +15,7 @@ resource "cloudflare_record" "ahoskingit" {
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "ahoskingit_www" {
|
||||
domain = "ahoskingit.com"
|
||||
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||
name = "www"
|
||||
type = "CNAME"
|
||||
value = "${cloudflare_record.ahoskingit.name}"
|
||||
@ -23,7 +23,7 @@ resource "cloudflare_record" "ahoskingit_www" {
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "ahoskingit_influx" {
|
||||
domain = "ahoskingit.com"
|
||||
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||
name = "influx"
|
||||
type = "CNAME"
|
||||
value = "home.ahoskingit.com"
|
||||
@ -38,166 +38,174 @@ resource "cloudflare_record" "ahoskingit_influx" {
|
||||
# proxied = "true" #A records cannot be proxied if wildcard
|
||||
#}
|
||||
|
||||
resource "aws_route53_record" "home_ahoskingit" {
|
||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
||||
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}"
|
||||
resource "cloudflare_record" "ahoskingit_plex" {
|
||||
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||
name = "plex.ahoskingit.com"
|
||||
type = "CNAME"
|
||||
ttl = "5"
|
||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
||||
value = "home.ahoskingit.com"
|
||||
proxied = "true"
|
||||
}
|
||||
|
||||
resource "aws_route53_record" "ns1_ahoskingit" {
|
||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
||||
name = "ns1.ahoskingit.com"
|
||||
resource "cloudflare_record" "home_ahoskingit" {
|
||||
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||
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"
|
||||
ttl = "5"
|
||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
||||
proxied = true
|
||||
value = "${cloudflare_record.kfa_ahoskingit.name}.${cloudflare_zone.ahoskingit_com.zone}"
|
||||
}
|
||||
|
||||
resource "aws_route53_record" "docs_ahoskingit" {
|
||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
||||
name = "docs.ahoskingit.com"
|
||||
resource "cloudflare_record" "logs_ahoskingit" {
|
||||
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||
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"
|
||||
ttl = "5"
|
||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
||||
proxied = true
|
||||
value = "${cloudflare_record.home_ahoskingit.name}.${cloudflare_zone.ahoskingit_com.zone}"
|
||||
}
|
||||
|
||||
resource "aws_route53_record" "cloud_ahoskingit" {
|
||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
||||
name = "cloud.ahoskingit.com"
|
||||
# resource "cloudflare_record" "requests_plex_ahoskingit" {
|
||||
# domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||
# name = "requests.plex"
|
||||
# type = "CNAME"
|
||||
# proxied = true
|
||||
# value = "${cloudflare_record.home_ahoskingit.name}"
|
||||
# }
|
||||
|
||||
resource "cloudflare_record" "ns1_ahoskingit" {
|
||||
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||
name = "ns1"
|
||||
type = "CNAME"
|
||||
ttl = "5"
|
||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
||||
proxied = true
|
||||
value = "${cloudflare_record.home_ahoskingit.name}.${cloudflare_zone.ahoskingit_com.zone}"
|
||||
}
|
||||
|
||||
resource "aws_route53_record" "goals_ahoskingit" {
|
||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
||||
name = "goals.ahoskingit.com"
|
||||
resource "cloudflare_record" "docs_ahoskingit" {
|
||||
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||
name = "docs"
|
||||
type = "CNAME"
|
||||
ttl = "5"
|
||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
||||
proxied = true
|
||||
value = "${cloudflare_record.home_ahoskingit.name}.${cloudflare_zone.ahoskingit_com.zone}"
|
||||
}
|
||||
|
||||
resource "aws_route53_record" "office_ahoskingit" {
|
||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
||||
name = "office.ahoskingit.com"
|
||||
resource "cloudflare_record" "cloud_ahoskingit" {
|
||||
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||
name = "cloud"
|
||||
type = "CNAME"
|
||||
ttl = "5"
|
||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
||||
proxied = true
|
||||
value = "${cloudflare_record.home_ahoskingit.name}.${cloudflare_zone.ahoskingit_com.zone}"
|
||||
}
|
||||
|
||||
resource "aws_route53_record" "support_ahoskingit" {
|
||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
||||
name = "support.ahoskingit.com"
|
||||
resource "cloudflare_record" "goals_ahoskingit" {
|
||||
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||
name = "goals"
|
||||
type = "CNAME"
|
||||
ttl = "5"
|
||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
||||
proxied = true
|
||||
value = "${cloudflare_record.home_ahoskingit.name}.${cloudflare_zone.ahoskingit_com.zone}"
|
||||
}
|
||||
|
||||
resource "aws_route53_record" "git_ahoskingit" {
|
||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
||||
name = "git.ahoskingit.com"
|
||||
resource "cloudflare_record" "office_ahoskingit" {
|
||||
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||
name = "office"
|
||||
type = "CNAME"
|
||||
ttl = "5"
|
||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
||||
proxied = true
|
||||
value = "${cloudflare_record.home_ahoskingit.name}.${cloudflare_zone.ahoskingit_com.zone}"
|
||||
}
|
||||
|
||||
resource "aws_route53_record" "gitlab_ahoskingit" {
|
||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
||||
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"
|
||||
ttl = "5"
|
||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
||||
proxied = true
|
||||
value = "${cloudflare_record.home_ahoskingit.name}.${cloudflare_zone.ahoskingit_com.zone}"
|
||||
}
|
||||
|
||||
resource "aws_route53_record" "monitors_ahoskingit" {
|
||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
||||
name = "monitors.ahoskingit.com"
|
||||
resource "cloudflare_record" "monitors_ahoskingit" {
|
||||
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||
name = "monitors"
|
||||
type = "CNAME"
|
||||
ttl = "5"
|
||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
||||
value = "${cloudflare_record.home_ahoskingit.name}.${cloudflare_zone.ahoskingit_com.zone}"
|
||||
proxied = true
|
||||
}
|
||||
|
||||
#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}"]
|
||||
#}
|
||||
|
||||
# email MX records for DNS
|
||||
resource "aws_route53_record" "ahoskingit_mx" {
|
||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
||||
name = "${aws_route53_zone.ahoskingit.name}"
|
||||
resource "cloudflare_record" "ahoskingit_com_mx" {
|
||||
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||
name = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||
type = "MX"
|
||||
ttl = "60"
|
||||
records = ["1 ASPMX.L.GOOGLE.COM",
|
||||
"5 ALT1.ASPMX.L.GOOGLE.COM",
|
||||
"5 ALT2.ASPMX.L.GOOGLE.COM",
|
||||
"10 ALT3.ASPMX.L.GOOGLE.COM",
|
||||
"10 ALT4.ASPMX.L.GOOGLE.COM"]
|
||||
value = "aspmx.l.google.com"
|
||||
priority = 1
|
||||
}
|
||||
resource "aws_route53_record" "ahoskingit_txt" {
|
||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
||||
name = "${aws_route53_zone.ahoskingit.name}"
|
||||
resource "cloudflare_record" "ahoskingit_com_mx1" {
|
||||
domain = "${cloudflare_zone.ahoskingit_com.zone}"
|
||||
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"
|
||||
ttl = "60"
|
||||
records = ["google-site-verification=8-QKnBQElI58gnygDWcCzvDGRh31c_bFmNMaSd0fCwE"]
|
||||
ttl = 120
|
||||
value = "google-site-verification=8-QKnBQElI58gnygDWcCzvDGRh31c_bFmNMaSd0fCwE"
|
||||
}
|
||||
|
@ -1,6 +1,9 @@
|
||||
##Terraform and its management of DNS in route53
|
||||
#### automatedbytes.com
|
||||
##Setup the domain in route53
|
||||
resource "cloudflare_zone" "automatedbytes_com" {
|
||||
zone = "automatedbytes.com"
|
||||
}
|
||||
resource "aws_route53_zone" "automatedbytes" {
|
||||
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" {
|
||||
domain = "${var.studi-odesigns_com}"
|
||||
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