Migrating all DNS to AWS
This commit is contained in:
parent
23177a2360
commit
6286c2f544
@ -45,7 +45,7 @@ resource "aws_route53_record" "lab_ahoskingit" {
|
|||||||
records = ["${aws_route53_record.kfa_ahoskingit.name}"]
|
records = ["${aws_route53_record.kfa_ahoskingit.name}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource = "aws_route53_record" "inventory_ahoskingit" {
|
resource "aws_route53_record" "inventory_ahoskingit" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
||||||
name = "inventory.ahoskingit.com"
|
name = "inventory.ahoskingit.com"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
@ -53,7 +53,7 @@ resource = "aws_route53_record" "inventory_ahoskingit" {
|
|||||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource = "aws_route53_record" "plex_ahoskingit" {
|
resource "aws_route53_record" "plex_ahoskingit" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
||||||
name = "plex.ahoskingit.com"
|
name = "plex.ahoskingit.com"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
@ -61,7 +61,7 @@ resource = "aws_route53_record" "plex_ahoskingit" {
|
|||||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource = "aws_route53_record" "ns1_ahoskingit" {
|
resource "aws_route53_record" "ns1_ahoskingit" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
||||||
name = "ns1.ahoskingit.com"
|
name = "ns1.ahoskingit.com"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
@ -69,7 +69,7 @@ resource = "aws_route53_record" "ns1_ahoskingit" {
|
|||||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource = "aws_route53_record" "docs_ahoskingit" {
|
resource "aws_route53_record" "docs_ahoskingit" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
||||||
name = "docs.ahoskingit.com"
|
name = "docs.ahoskingit.com"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
@ -77,7 +77,7 @@ resource = "aws_route53_record" "docs_ahoskingit" {
|
|||||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource = "aws_route53_record" "cloud_ahoskingit" {
|
resource "aws_route53_record" "cloud_ahoskingit" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
||||||
name = "cloud.ahoskingit.com"
|
name = "cloud.ahoskingit.com"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
@ -85,7 +85,7 @@ resource = "aws_route53_record" "cloud_ahoskingit" {
|
|||||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource = "aws_route53_record" "support_ahoskingit" {
|
resource "aws_route53_record" "support_ahoskingit" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
||||||
name = "support.ahoskingit.com"
|
name = "support.ahoskingit.com"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
@ -93,7 +93,7 @@ resource = "aws_route53_record" "support_ahoskingit" {
|
|||||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource = "aws_route53_record" "git_ahoskingit" {
|
resource "aws_route53_record" "git_ahoskingit" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
||||||
name = "git.ahoskingit.com"
|
name = "git.ahoskingit.com"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
@ -101,9 +101,9 @@ resource = "aws_route53_record" "git_ahoskingit" {
|
|||||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource = "aws_route53_record" "gitlab_ahoskingit" {
|
resource "aws_route53_record" "gitlab_ahoskingit" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
|
||||||
name = "gitlab.ahoskingit.com"
|
name = "gitlab"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
ttl = "5"
|
ttl = "5"
|
||||||
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
records = ["${aws_route53_record.home_ahoskingit.name}"]
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
#Setup the domain in route53
|
#Setup the domain in route53
|
||||||
resource "aws_route53_zone" "ahoskingit_ca" {
|
resource "aws_route53_zone" "ahoskingit_ca" {
|
||||||
name = "ahoskingit_ca.com"
|
name = "ahoskingit.ca"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_route53_record" "ahoskingit_ca" {
|
resource "aws_route53_record" "ahoskingit_ca" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
||||||
name = "ahoskingit_ca.com"
|
name = "ahoskingit.ca"
|
||||||
type = "A"
|
type = "A"
|
||||||
ttl = "5"
|
ttl = "5"
|
||||||
records = ["${var.site5_ip}"]
|
records = ["${var.site5_ip}"]
|
||||||
@ -15,7 +15,7 @@ resource "aws_route53_record" "ahoskingit_ca" {
|
|||||||
|
|
||||||
resource "aws_route53_record" "ahoskingit_ca_www" {
|
resource "aws_route53_record" "ahoskingit_ca_www" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
||||||
name = "www.ahoskingit_ca.com"
|
name = "www.ahoskingit.ca"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
ttl = "5"
|
ttl = "5"
|
||||||
records = ["${aws_route53_record.ahoskingit_ca.name}"]
|
records = ["${aws_route53_record.ahoskingit_ca.name}"]
|
||||||
@ -23,96 +23,80 @@ resource "aws_route53_record" "ahoskingit_ca_www" {
|
|||||||
|
|
||||||
resource "aws_route53_record" "home_ahoskingit_ca" {
|
resource "aws_route53_record" "home_ahoskingit_ca" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
||||||
name = "home.ahoskingit_ca.com"
|
name = "home.ahoskingit.ca"
|
||||||
type = "A"
|
type = "A"
|
||||||
ttl = "5"
|
ttl = "5"
|
||||||
records = ["${var.home_ip}"]
|
records = ["${var.home_ip}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_route53_record" "kfa_ahoskingit_ca" {
|
resource "aws_route53_record" "inventory_ahoskingit_ca" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
||||||
name = "kfa.ahoskingit_ca.com"
|
name = "inventory.ahoskingit.ca"
|
||||||
type = "A"
|
|
||||||
ttl = "5"
|
|
||||||
records = ["${var.kfa_ip}"]
|
|
||||||
}
|
|
||||||
|
|
||||||
resource "aws_route53_record" "lab_ahoskingit_ca" {
|
|
||||||
zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
|
||||||
name = "lab.ahoskingit_ca.com"
|
|
||||||
type = "CNAME"
|
|
||||||
ttl = "5"
|
|
||||||
records = ["${aws_route53_record.kfa_ahoskingit_ca.name}"]
|
|
||||||
}
|
|
||||||
|
|
||||||
resource = "aws_route53_record" "inventory_ahoskingit_ca" {
|
|
||||||
zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
|
||||||
name = "inventory.ahoskingit_ca.com"
|
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
ttl = "5"
|
ttl = "5"
|
||||||
records = ["${aws_route53_record.home_ahoskingit_ca.name}"]
|
records = ["${aws_route53_record.home_ahoskingit_ca.name}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource = "aws_route53_record" "plex_ahoskingit_ca" {
|
resource "aws_route53_record" "plex_ahoskingit_ca" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
||||||
name = "plex.ahoskingit_ca.com"
|
name = "plex.ahoskingit.ca"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
ttl = "5"
|
ttl = "5"
|
||||||
records = ["${aws_route53_record.home_ahoskingit_ca.name}"]
|
records = ["${aws_route53_record.home_ahoskingit_ca.name}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource = "aws_route53_record" "ns1_ahoskingit_ca" {
|
resource "aws_route53_record" "ns1_ahoskingit_ca" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
||||||
name = "ns1.ahoskingit_ca.com"
|
name = "ns1.ahoskingit.ca"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
ttl = "5"
|
ttl = "5"
|
||||||
records = ["${aws_route53_record.home_ahoskingit_ca.name}"]
|
records = ["${aws_route53_record.home_ahoskingit_ca.name}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource = "aws_route53_record" "docs_ahoskingit_ca" {
|
resource "aws_route53_record" "docs_ahoskingit_ca" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
||||||
name = "docs.ahoskingit_ca.com"
|
name = "docs.ahoskingit.ca"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
ttl = "5"
|
ttl = "5"
|
||||||
records = ["${aws_route53_record.home_ahoskingit_ca.name}"]
|
records = ["${aws_route53_record.home_ahoskingit_ca.name}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource = "aws_route53_record" "cloud_ahoskingit_ca" {
|
resource "aws_route53_record" "cloud_ahoskingit_ca" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
||||||
name = "cloud.ahoskingit_ca.com"
|
name = "cloud.ahoskingit.ca"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
ttl = "5"
|
ttl = "5"
|
||||||
records = ["${aws_route53_record.home_ahoskingit_ca.name}"]
|
records = ["${aws_route53_record.home_ahoskingit_ca.name}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource = "aws_route53_record" "support_ahoskingit_ca" {
|
resource "aws_route53_record" "support_ahoskingit_ca" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
||||||
name = "support.ahoskingit_ca.com"
|
name = "support.ahoskingit.ca"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
ttl = "5"
|
ttl = "5"
|
||||||
records = ["${aws_route53_record.home_ahoskingit_ca.name}"]
|
records = ["${aws_route53_record.home_ahoskingit_ca.name}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource = "aws_route53_record" "git_ahoskingit_ca" {
|
resource "aws_route53_record" "git_ahoskingit_ca" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
||||||
name = "git.ahoskingit_ca.com"
|
name = "git.ahoskingit.ca"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
ttl = "5"
|
ttl = "5"
|
||||||
records = ["${aws_route53_record.home_ahoskingit_ca.name}"]
|
records = ["${aws_route53_record.home_ahoskingit_ca.name}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource = "aws_route53_record" "gitlab_ahoskingit_ca" {
|
resource "aws_route53_record" "gitlab_ahoskingit_ca" {
|
||||||
zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
||||||
name = "gitlab.ahoskingit_ca.com"
|
name = "gitlab.ahoskingit.ca"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
ttl = "5"
|
ttl = "5"
|
||||||
records = ["${aws_route53_record.home_ahoskingit_ca.name}"]
|
records = ["${aws_route53_record.home_ahoskingit_ca.name}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
#Route53 DNS entry
|
##Route53 DNS entry
|
||||||
#resource "aws_route53_record" "www_ahoskingit_ca" {
|
#resource "aws_route53_record" "www_ahoskingit_ca" {
|
||||||
# zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
# zone_id = "${aws_route53_zone.ahoskingit_ca.zone_id}"
|
||||||
# name = "www.ahoskingit_ca.com"
|
# name = "www.ahoskingit.ca"
|
||||||
# type = "A"
|
# type = "A"
|
||||||
# ttl = "5"
|
# ttl = "5"
|
||||||
# records = ["${var.home_ip}"]
|
# records = ["${var.home_ip}"]
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#Terraform and its management of DNS in route53
|
#Terraform and its management of DNS in route53
|
||||||
### ITAutomata.com
|
### automatedbytes.com
|
||||||
#Setup the domain in route53
|
#Setup the domain in route53
|
||||||
resource "aws_route53_zone" "automatedbytes" {
|
resource "aws_route53_zone" "automatedbytes" {
|
||||||
name = "automatedbytes.com"
|
name = "automatedbytes.com"
|
||||||
@ -19,7 +19,7 @@ resource "aws_route53_record" "www_automatedbytes" {
|
|||||||
name = "www.automatedbytes.com"
|
name = "www.automatedbytes.com"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
ttl = "5"
|
ttl = "5"
|
||||||
records = ["${aws_route53_record.automatedbytes_ca.name}"]
|
records = ["${aws_route53_record.automatedbytes.name}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_route53_record" "wildcard_automatedbytes" {
|
resource "aws_route53_record" "wildcard_automatedbytes" {
|
||||||
@ -27,25 +27,25 @@ resource "aws_route53_record" "wildcard_automatedbytes" {
|
|||||||
name = "*.automatedbytes.com"
|
name = "*.automatedbytes.com"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
ttl = "5"
|
ttl = "5"
|
||||||
records = ["${aws_route53_record.automatedbytes_ca.name}"]
|
records = ["${aws_route53_record.automatedbytes.name}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
### ITAutomata.ca
|
### automatedbytes.ca
|
||||||
#Setup the domain in route53
|
#Setup the domain in route53
|
||||||
resource "aws_route53_zone" "automatedbytes_ca" {
|
resource "aws_route53_zone" "automatedbytes_ca" {
|
||||||
name = "automatedbytes.ca"
|
name = "automatedbytes.ca"
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_route53_record" "automatedbytes_ca" {
|
resource "aws_route53_record" "automatedbytes_ca" {
|
||||||
zone_id = "${aws_route53_zone.automatedbytes.zone_id}"
|
zone_id = "${aws_route53_zone.automatedbytes_ca.zone_id}"
|
||||||
name = "www.automatedbytes.ca"
|
name = "automatedbytes.ca"
|
||||||
type = "A"
|
type = "A"
|
||||||
ttl = "5"
|
ttl = "5"
|
||||||
records = ["${var.home_ip}"]
|
records = ["${var.home_ip}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_route53_record" "www_automatedbytes_ca" {
|
resource "aws_route53_record" "www_automatedbytes_ca" {
|
||||||
zone_id = "${aws_route53_zone.automatedbytes.zone_id}"
|
zone_id = "${aws_route53_zone.automatedbytes_ca.zone_id}"
|
||||||
name = "www.automatedbytes.ca"
|
name = "www.automatedbytes.ca"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
ttl = "5"
|
ttl = "5"
|
||||||
@ -53,7 +53,7 @@ resource "aws_route53_record" "www_automatedbytes_ca" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_route53_record" "wildcard_automatedbytes_ca" {
|
resource "aws_route53_record" "wildcard_automatedbytes_ca" {
|
||||||
zone_id = "${aws_route53_zone.automatedbytes.zone_id}"
|
zone_id = "${aws_route53_zone.automatedbytes_ca.zone_id}"
|
||||||
name = "*.automatedbytes.ca"
|
name = "*.automatedbytes.ca"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
ttl = "5"
|
ttl = "5"
|
||||||
|
@ -38,14 +38,14 @@ resource "aws_route53_zone" "itautomata_ca" {
|
|||||||
|
|
||||||
resource "aws_route53_record" "itautomata_ca" {
|
resource "aws_route53_record" "itautomata_ca" {
|
||||||
zone_id = "${aws_route53_zone.itautomata.zone_id}"
|
zone_id = "${aws_route53_zone.itautomata.zone_id}"
|
||||||
name = "www.itautomata.ca"
|
name = "itautomata.ca"
|
||||||
type = "A"
|
type = "A"
|
||||||
ttl = "5"
|
ttl = "5"
|
||||||
records = ["${var.home_ip}"]
|
records = ["${var.home_ip}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "aws_route53_record" "www_itautomata_ca" {
|
resource "aws_route53_record" "www_itautomata_ca" {
|
||||||
zone_id = "${aws_route53_zone.itautomata.zone_id}"
|
zone_id = "${aws_route53_zone.itautomata_ca.zone_id}"
|
||||||
name = "www.itautomata.ca"
|
name = "www.itautomata.ca"
|
||||||
type = "CNAME"
|
type = "CNAME"
|
||||||
ttl = "5"
|
ttl = "5"
|
||||||
|
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