Skip to content

Commit

Permalink
fix (ses): create feedback mx record (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
parisk authored Oct 24, 2024
2 parents 47a1d59 + 805818d commit bff883c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions aws/ses/route53.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,13 @@ resource "aws_route53_record" "domain_amazonses_dkim_record" {
ttl = "3600"
records = ["${element(aws_ses_domain_dkim.dkim.dkim_tokens, count.index)}.dkim.amazonses.com"]
}

resource "aws_route53_record" "domain_amazonses_feedback_mx_record" {
count = (var.route53_zone != null && var.mail_from_domain != null) ? 1 : 0

zone_id = var.route53_zone
name = var.mail_from_domain
type = "MX"
records = ["10 feedback-smtp.${var.region}.amazonaws.com", ]
ttl = 60
}

0 comments on commit bff883c

Please sign in to comment.