diff --git a/deploy/terraform/dns.tf b/deploy/terraform/dns.tf index e45edf5..4154fa5 100644 --- a/deploy/terraform/dns.tf +++ b/deploy/terraform/dns.tf @@ -18,6 +18,10 @@ resource "aws_route53_zone" "turkeltaub_me" { name = "turkeltaub.me" } +resource "aws_route53_zone" "turkeltaub_dev" { + name = "turkeltaub.dev" +} + resource "aws_route53_record" "root_e10_video" { zone_id = aws_route53_zone.e10_video.zone_id name = "e10.video" @@ -145,3 +149,51 @@ resource "aws_route53_record" "spf_turkeltaub_me" { records = ["v=spf1 include:spf.messagingengine.com ?all"] ttl = 300 } + +resource "aws_route53_record" "root_mx_turkeltaub_dev" { + zone_id = aws_route53_zone.turkeltaub_dev.zone_id + name = "turkeltaub.dev" + type = "MX" + records = ["10 in1-smtp.messagingengine.com", "20 in2-smtp.messagingengine.com"] + ttl = 300 +} + +resource "aws_route53_record" "wildcard_mx_turkeltaub_dev" { + zone_id = aws_route53_zone.turkeltaub_dev.zone_id + name = "*.turkeltaub.dev" + type = "MX" + records = ["10 in1-smtp.messagingengine.com", "20 in2-smtp.messagingengine.com"] + ttl = 300 +} + +resource "aws_route53_record" "fm1_domainkey_turkeltaub_dev" { + zone_id = aws_route53_zone.turkeltaub_dev.zone_id + name = "fm1._domainkey.turkeltaub.dev" + type = "CNAME" + records = ["fm1.turkeltaub.dev.dkim.fmhosted.com"] + ttl = 300 +} + +resource "aws_route53_record" "fm2_domainkey_turkeltaub_dev" { + zone_id = aws_route53_zone.turkeltaub_dev.zone_id + name = "fm2._domainkey.turkeltaub.dev" + type = "CNAME" + records = ["fm2.turkeltaub.dev.dkim.fmhosted.com"] + ttl = 300 +} + +resource "aws_route53_record" "fm3_domainkey_turkeltaub_dev" { + zone_id = aws_route53_zone.turkeltaub_dev.zone_id + name = "fm3._domainkey.turkeltaub.dev" + type = "CNAME" + records = ["fm3.turkeltaub.dev.dkim.fmhosted.com"] + ttl = 300 +} + +resource "aws_route53_record" "spf_turkeltaub_dev" { + zone_id = aws_route53_zone.turkeltaub_dev.zone_id + name = "turkeltaub.dev" + type = "TXT" + records = ["v=spf1 include:spf.messagingengine.com ?all"] + ttl = 300 +}