Skip to content

Commit 20bdf03

Browse files
chrisbloerobg-test
authored andcommitted
Moving another resource
1 parent 19534b0 commit 20bdf03

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

infrastructure/dns_email_auth.tf

Lines changed: 0 additions & 9 deletions
This file was deleted.

infrastructure/modules/ses/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ module "ses_identity" {
4242

4343
| Name | Type |
4444
|------|------|
45+
| [aws_route53_record.dmarc](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_record) | resource |
4546
| [aws_route53_record.ndr_ses_dkim_record](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_record) | resource |
4647
| [aws_route53_record.ses_mail_from_mx](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_record) | resource |
4748
| [aws_route53_record.ses_mail_from_spf](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/route53_record) | resource |

infrastructure/modules/ses/main.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,13 @@ resource "aws_route53_record" "ses_mail_from_spf" {
5959
"v=spf1 include:amazonses.com -all"
6060
]
6161
}
62+
63+
resource "aws_route53_record" "dmarc" {
64+
count = var.enable ? 1 : 0
65+
zone_id = var.zone_id
66+
name = "_dmarc.${aws_ses_domain_identity.ndr_ses[0].domain}"
67+
type = "TXT"
68+
ttl = 300
69+
70+
records = ["v=DMARC1; p=none; adkim=s; aspf=s"]
71+
}

0 commit comments

Comments
 (0)