Skip to content

Commit

Permalink
dkim
Browse files Browse the repository at this point in the history
  • Loading branch information
crlssn committed Dec 4, 2024
1 parent 2e6c307 commit d992fcb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions infrastructure/email.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,12 @@ resource "aws_route53_record" "ses_verification" {
resource "aws_ses_domain_dkim" "getstronger" {
domain = aws_ses_domain_identity.getstronger.domain
}

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"]
}

0 comments on commit d992fcb

Please sign in to comment.