Skip to content

Commit

Permalink
remove spf
Browse files Browse the repository at this point in the history
  • Loading branch information
crlssn committed Dec 4, 2024
1 parent 6132f26 commit dc572e9
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions infrastructure/email.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,10 @@ resource "aws_ses_domain_dkim" "getstronger" {
}

resource "aws_route53_record" "dkim" {
for_each = toset(aws_ses_domain_dkim.getstronger.dkim_tokens)
zone_id = aws_route53_zone.getstronger_pro.zone_id
name = "${each.value}._domainkey.getstronger.pro"
type = "CNAME"
ttl = 600
records = ["${each.value}.dkim.amazonses.com"]
}

resource "aws_route53_record" "spf" {
count = length(aws_ses_domain_dkim.getstronger.dkim_tokens)
zone_id = aws_route53_zone.getstronger_pro.zone_id
name = "getstronger.pro"
type = "TXT"
name = "${aws_ses_domain_dkim.getstronger.dkim_tokens[count.index]}._domainkey.getstronger.pro"
type = "CNAME"
ttl = 600
records = ["v=spf1 include:amazonses.com ~all"]
records = ["${aws_ses_domain_dkim.getstronger.dkim_tokens[count.index]}.dkim.amazonses.com"]
}

0 comments on commit dc572e9

Please sign in to comment.