From 2712e0df56cd6ccc8f2c6b16615cb1db01ee9901 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 20 Mar 2020 21:39:36 +0000 Subject: [PATCH] Add jakehoward.tech and fastmail records --- terraform/jakehoward.tech.tf | 53 ++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 terraform/jakehoward.tech.tf diff --git a/terraform/jakehoward.tech.tf b/terraform/jakehoward.tech.tf new file mode 100644 index 0000000..5cdaba5 --- /dev/null +++ b/terraform/jakehoward.tech.tf @@ -0,0 +1,53 @@ +resource "cloudflare_zone" "jakehowardtech" { + zone = "jakehoward.tech" +} + +resource "cloudflare_record" "jakehowardtech_mx1" { + zone_id = cloudflare_zone.jakehowardtech.id + name = "@" + value = "in1-smtp.messagingengine.com" + type = "MX" + priority = 10 + ttl = 1 +} + +resource "cloudflare_record" "jakehowardtech_mx2" { + zone_id = cloudflare_zone.jakehowardtech.id + name = "@" + value = "in2-smtp.messagingengine.com" + type = "MX" + priority = 20 + ttl = 1 +} + +resource "cloudflare_record" "jakehowardtech_txt" { + zone_id = cloudflare_zone.jakehowardtech.id + name = "@" + value = "v=spf1 include:spf.messagingengine.com ?all" + type = "TXT" + ttl = 1 +} + +resource "cloudflare_record" "jakehowardtech_dkim_fm1" { + zone_id = cloudflare_zone.jakehowardtech.id + name = "fm1._domainkey" + value = "fm1.jakehoward.tech.dkim.fmhosted.com" + type = "CNAME" + ttl = 1 +} + +resource "cloudflare_record" "jakehowardtech_dkim_fm2" { + zone_id = cloudflare_zone.jakehowardtech.id + name = "fm2._domainkey" + value = "fm2.jakehoward.tech.dkim.fmhosted.com" + type = "CNAME" + ttl = 1 +} + +resource "cloudflare_record" "jakehowardtech_dkim_fm3" { + zone_id = cloudflare_zone.jakehowardtech.id + name = "fm3._domainkey" + value = "fm3.jakehoward.tech.dkim.fmhosted.com" + type = "CNAME" + ttl = 1 +}