From 43c3fb25ef86bbc195fa6604ce81a8325b15341f Mon Sep 17 00:00:00 2001 From: Eunsoo Shin <62971511+esinx@users.noreply.github.com> Date: Mon, 4 Mar 2024 12:21:49 -0500 Subject: [PATCH] Allow Multivalue TXT Records (#193) * fix(route53): multivalue txt records to allow certbot to add acme-challenge records * chore(lint) * :bug: Fix * :art: Lint --------- Co-authored-by: Joy Liu --- terraform/modules/domain/main.tf | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/terraform/modules/domain/main.tf b/terraform/modules/domain/main.tf index 88b3b10d..7a0d9f3e 100644 --- a/terraform/modules/domain/main.tf +++ b/terraform/modules/domain/main.tf @@ -23,11 +23,13 @@ resource "aws_route53_record" "wildcard" { } resource "aws_route53_record" "spf" { - zone_id = aws_route53_zone.domain.zone_id - name = "" - type = "TXT" - ttl = 3600 - records = ["v=spf1 include:mailgun.org ~all"] + zone_id = aws_route53_zone.domain.zone_id + name = "" + type = "TXT" + ttl = 3600 + records = ["v=spf1 include:mailgun.org ~all"] + multivalue_answer_routing_policy = true + set_identifier = "spf" } resource "aws_route53_record" "mailgun" {