Skip to content

Commit

Permalink
Allow Multivalue TXT Records (#193)
Browse files Browse the repository at this point in the history
* fix(route53): multivalue txt records to allow certbot to add acme-challenge records

* chore(lint)

* 🐛 Fix

* 🎨 Lint

---------

Co-authored-by: Joy Liu <[email protected]>
  • Loading branch information
esinx and joyliu-q authored Mar 4, 2024
1 parent 75ba7f6 commit 43c3fb2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions terraform/modules/domain/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down

0 comments on commit 43c3fb2

Please sign in to comment.