# Assumes the zone already exists; data "aws_route53_zone" "monkeybox" { name = "monkeybox.org" private_zone = false } resource "aws_route53_record" "mx" { zone_id = data.aws_route53_zone.monkeybox.id name = "" type = "MX" ttl = "300" records = [ "10 mx1.forwardemail.net", "10 mx2.forwardemail.net", ] } # Must delete the existing TXT records first resource "aws_route53_record" "email-addresses" { zone_id = data.aws_route53_zone.monkeybox.id name = "" type = "TXT" ttl = "300" records = [ "v=spf1 a mx include:spf.forwardemail.net include:_spf.google.com -all", "keybase-site-verification=J7aRzsHEZZLz98HqE2plp7gBxZdpLZN2KRyj4euUu8s", "forward-email=fred:fred.damstra@gmail.com", "forward-email=abuse:fred.damstra@gmail.com", "forward-email=postmaster:fred.damstra@gmail.com", "forward-email=bestbuy:fred.damstra@gmail.com", "forward-email=kirstin:kirstin.damstra@gmail.com", "forward-email=bills:fred.damstra@gmail.com,bills:kirstin.damstra@gmail.com", "forward-email=consumers:fred.damstra@gmail.com,consumers:kirstin.damstra@gmail.com", "forward-email=dteenergy:fred.damstra@gmail.com,dteenergy:kirstin.damstra@gmail.com", "forward-email=tugboat:gswillson@gmail.com", ] }