From 606bf723b8ec9a39a17bba695ad0f4a5b641992b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 28 May 2019 16:23:56 -0400 Subject: [PATCH] add missin verification reocrds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- main.tf | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/main.tf b/main.tf index 40d779f..1913946 100644 --- a/main.tf +++ b/main.tf @@ -56,7 +56,7 @@ resource "gandi_zonerecord" "domain-verification" { values = ["\"CmTCsJqXg8DadmhGCNOWsSCXPQ8FjHkbw0SwjqLBzLM=\""] } -resource "gandi_zonerecord" "dkim-1" { +resource "gandi_zonerecord" "dap_ps_dkim_1" { zone = "${gandi_zone.dap_ps.id}" name = "zhncay5diy2lqdbq2ybrtqy7zaz5j5rb._domainkey" type = "CNAME" @@ -64,7 +64,7 @@ resource "gandi_zonerecord" "dkim-1" { values = ["zhncay5diy2lqdbq2ybrtqy7zaz5j5rb.dkim.amazonses.com"] } -resource "gandi_zonerecord" "dkim-2" { +resource "gandi_zonerecord" "dap_ps_dkim_2" { zone = "${gandi_zone.dap_ps.id}" name = "lkisrrqkfjmm64kksgqcwbiw6erk32do._domainkey" type = "CNAME" @@ -72,7 +72,7 @@ resource "gandi_zonerecord" "dkim-2" { values = ["lkisrrqkfjmm64kksgqcwbiw6erk32do.dkim.amazonses.com"] } -resource "gandi_zonerecord" "dkim-3" { +resource "gandi_zonerecord" "dap_ps_dkim_3" { zone = "${gandi_zone.dap_ps.id}" name = "bd6y7xtfpnfpuugoqmjjp7yf75ddyrv2._domainkey" type = "CNAME" @@ -80,7 +80,7 @@ resource "gandi_zonerecord" "dkim-3" { values = ["bd6y7xtfpnfpuugoqmjjp7yf75ddyrv2.dkim.amazonses.com"] } -resource "gandi_zonerecord" "email" { +resource "gandi_zonerecord" "dap_ps_mx" { zone = "${gandi_zone.dap_ps.id}" name = "@" type = "MX" @@ -88,9 +88,20 @@ resource "gandi_zonerecord" "email" { values = ["10 inbound-smtp.eu-west-1.amazonaws.com"] } -/* RESOURCES ------------------------------------*/ - -resource "aws_key_pair" "admin" { - key_name = "admin-key" - public_key = "${file("admin.pub")}" +resource "gandi_zonerecord" "dap_ps_mail_mx" { + zone = "${gandi_zone.dap_ps.id}" + name = "mail" + type = "MX" + ttl = 3600 + values = ["10 feedback-smtp.eu-west-1.amazonses.com"] } + +resource "gandi_zonerecord" "dap_ps_mail_spf" { + zone = "${gandi_zone.dap_ps.id}" + name = "mail" + type = "TXT" + ttl = 3600 + values = ["\"v= spf1 include:amazonses.com ~all\""] +} + +/* RESOURCES ------------------------------------*/