From 4e46f344408e15130b03413c3cca874451f910e0 Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 27 Dec 2022 17:33:23 -0800 Subject: [PATCH] Imported route53 zone + records --- infra/route53.tf | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 infra/route53.tf diff --git a/infra/route53.tf b/infra/route53.tf new file mode 100644 index 0000000..5572649 --- /dev/null +++ b/infra/route53.tf @@ -0,0 +1,33 @@ + +# This entry is just for the sample service that is just plain nginx +# No TLS will be placed on this just yet as we need to make sure this +# and the load balancer are setup to receive things properly +resource "aws_route53_zone" "project-athens" { + name = "project-athens.xyz" + comment = "Project Athens domain zone" +} + + +resource "aws_route53_record" "main_ns" { + zone_id = aws_route53_zone.project-athens.id + name = "project-athens.xyz" + type = "NS" + ttl = 172800 + records = [ + "ns-806.awsdns-36.net.", + "ns-1881.awsdns-43.co.uk.", + "ns-1109.awsdns-10.org.", + "ns-11.awsdns-01.com.", + ] +} + +resource "aws_route53_record" "main_soa" { + zone_id = aws_route53_zone.project-athens.id + name = "project-athens.xyz" + type = "SOA" + ttl = 900 + records = [ + "ns-806.awsdns-36.net. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400" + ] +} +