Skip to content

Commit

Permalink
Merge branch 'lrnt-020/email-server-setup' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
zatarain committed Aug 9, 2024
2 parents 5f3670c + e151176 commit 808d884
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions mail.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,25 @@ locals {
}

resource "aws_route53_record" "crm-code" {
for_each = toset(local.configuration.sdlc.environments)
zone_id = local.kingdom.zone_id
name = ""
type = "TXT"
ttl = 172800
records = [local.mail-secret["code"]]
zone_id = local.kingdom.zone_id
name = ""
type = "TXT"
ttl = 172800
records = [local.mail-secret["code"]]
}

resource "aws_route53_record" "crm-dkim" {
for_each = toset(local.configuration.sdlc.environments)
zone_id = local.kingdom.zone_id
name = "mail._domainkey"
type = "TXT"
ttl = 172800
records = [local.mail-secret["dkim"]]
zone_id = local.kingdom.zone_id
name = "mail._domainkey"
type = "TXT"
ttl = 172800
records = [local.mail-secret["dkim"]]
}

resource "aws_route53_record" "crm-dmarc" {
for_each = toset(local.configuration.sdlc.environments)
zone_id = local.kingdom.zone_id
name = "_dmarc"
type = "TXT"
ttl = 172800
records = [local.mail-secret["dmarc"]]
zone_id = local.kingdom.zone_id
name = "_dmarc"
type = "TXT"
ttl = 172800
records = [local.mail-secret["dmarc"]]
}

0 comments on commit 808d884

Please sign in to comment.