slopedme-terrraform/route53/sloped-me.tf
Conner McCall c983638571 change: initial commit
contains sloped.me domain records and
backend configuration
2020-08-20 07:33:33 -05:00

87 lines
2.3 KiB
HCL

resource "aws_route53_zone" "sloped-me" {
name = "sloped.me"
}
resource "aws_route53_record" "sloped-me-A" {
zone_id = aws_route53_zone.sloped-me.zone_id
name = "sloped.me"
type = "A"
records = ["104.236.108.131"]
ttl = "604800"
}
resource "aws_route53_record" "sloped-me-MX" {
zone_id = aws_route53_zone.sloped-me.zone_id
name = "sloped.me"
type = "MX"
records = ["10 in1-smtp.messagingengine.com", "20 in2-smtp.messagingengine.com"]
ttl = "604800"
}
resource "aws_route53_record" "sloped-me-TXT" {
zone_id = aws_route53_zone.sloped-me.zone_id
name = "sloped.me"
type = "TXT"
records = ["v=spf1 include:spf.messagingengine.com ?all"]
ttl = "300"
}
resource "aws_route53_record" "wildcard-sloped-me-MX" {
zone_id = aws_route53_zone.sloped-me.zone_id
name = "*.sloped.me"
type = "MX"
records = ["10 in1-smtp.messagingengine.com", "20 in2-smtp.messagingengine.com"]
ttl = "86400"
}
resource "aws_route53_record" "fm1-_domainkey-sloped-me-CNAME" {
zone_id = aws_route53_zone.sloped-me.zone_id
name = "fm1._domainkey.sloped.me"
type = "CNAME"
records = ["fm1.sloped.me.dkim.fmhosted.com"]
ttl = "300"
}
resource "aws_route53_record" "fm2-_domainkey-sloped-me-CNAME" {
zone_id = aws_route53_zone.sloped-me.zone_id
name = "fm2._domainkey.sloped.me"
type = "CNAME"
records = ["fm2.sloped.me.dkim.fmhosted.com"]
ttl = "300"
}
resource "aws_route53_record" "fm3-_domainkey-sloped-me-CNAME" {
zone_id = aws_route53_zone.sloped-me.zone_id
name = "fm3._domainkey.sloped.me"
type = "CNAME"
records = ["fm3.sloped.me.dkim.fmhosted.com"]
ttl = "300"
}
resource "aws_route53_record" "www-sloped-me-CNAME" {
zone_id = aws_route53_zone.sloped-me.zone_id
name = "www.sloped.me"
type = "CNAME"
records = ["sloped.me"]
ttl = "300"
}
resource "aws_route53_record" "cw-sloped-me-NS" {
zone_id = aws_route53_zone.sloped-me.zone_id
name = "cw.sloped.me"
type = "NS"
records = [ "ns-36.awsdns-04.com",
"ns-619.awsdns-13.net",
"ns-1252.awsdns-28.org",
"ns-1862.awsdns-40.co.uk"
]
ttl = "300"
}