Skip to content

Commit

Permalink
Update template-infra:base to version 0.15.2.post1.dev0+005e822
Browse files Browse the repository at this point in the history
  • Loading branch information
nava-platform-bot committed Jan 28, 2025
1 parent f3307b4 commit c3de558
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .template-infra/base.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changes here will be overwritten by Copier
_commit: v0.15.1-17-g9310f64
_src_path: https://github.com/navapbc/template-infra
_commit: v0.15.2-1-g005e822
_src_path: ../template-infra
base_code_repository_url: https://github.com/navapbc/platform-test-flask
base_default_region: us-east-1
base_owner: platform-admins
Expand Down
13 changes: 10 additions & 3 deletions infra/modules/notifications-email-domain/resources/dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ resource "aws_route53_record" "dkim" {
zone_id = var.hosted_zone_id
name = "${aws_sesv2_email_identity.sender_domain.dkim_signing_attributes[0].tokens[count.index]}._domainkey.${var.domain_name}"
records = ["${aws_sesv2_email_identity.sender_domain.dkim_signing_attributes[0].tokens[count.index]}.dkim.amazonses.com"]

depends_on = [aws_sesv2_email_identity.sender_domain]
}

resource "aws_route53_record" "spf_mail_from" {
Expand All @@ -24,7 +22,16 @@ resource "aws_route53_record" "mx_receive" {
allow_overwrite = true
type = "MX"
ttl = "600"
zone_id = var.hosted_zone_id
name = local.mail_from_domain
records = ["10 feedback-smtp.${data.aws_region.current.name}.amazonses.com"]
}

resource "aws_route53_record" "dmarc" {
allow_overwrite = true
ttl = "600"
type = "TXT"
zone_id = var.hosted_zone_id
records = ["10 feedback-smtp.${data.aws_region.current.name}.amazonaws.com"]
name = local.dmarc_domain
records = ["v=DMARC1; p=none;"]
}
3 changes: 1 addition & 2 deletions infra/modules/notifications-email-domain/resources/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ data "aws_region" "current" {}

locals {
mail_from_domain = "mail.${var.domain_name}"
dmarc_domain = "_dmarc.${var.domain_name}"
dash_domain = replace(var.domain_name, ".", "-")
}

Expand Down Expand Up @@ -35,6 +36,4 @@ resource "aws_sesv2_configuration_set" "email" {
resource "aws_sesv2_email_identity_mail_from_attributes" "sender_domain" {
email_identity = aws_sesv2_email_identity.sender_domain.email_identity
mail_from_domain = local.mail_from_domain

depends_on = [aws_sesv2_email_identity.sender_domain]
}

0 comments on commit c3de558

Please sign in to comment.