Skip to content

Commit

Permalink
Update template-infra:base to version 0.15.0.post3.dev0+cb15833
Browse files Browse the repository at this point in the history
  • Loading branch information
nava-platform-bot committed Jan 15, 2025
1 parent 6d76a4d commit 523e7b9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .template-infra/base.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: v0.15.0-2-gfb1e6e6
_commit: v0.15.0-3-gcb15833
_src_path: ../template-infra
base_code_repository_url: [email protected]:navapbc/platform-test.git
base_default_region: us-east-1
Expand Down
12 changes: 4 additions & 8 deletions infra/modules/notifications-email-domain/resources/dns.tf
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
data "aws_route53_zone" "zone" {
name = var.domain_name
}

resource "aws_route53_record" "dkim" {
count = 3

allow_overwrite = true
ttl = 60
type = "CNAME"
zone_id = data.aws_route53_zone.zone.zone_id
name = "${aws_sesv2_email_identity.sender_domain.dkim_signing_attributes[0].tokens[count.index]}._domainkey"
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]
Expand All @@ -19,7 +15,7 @@ resource "aws_route53_record" "spf_mail_from" {
allow_overwrite = true
ttl = "600"
type = "TXT"
zone_id = data.aws_route53_zone.zone.zone_id
zone_id = var.hosted_zone_id
name = aws_sesv2_email_identity_mail_from_attributes.sender_domain.mail_from_domain
records = ["v=spf1 include:amazonses.com ~all"]
}
Expand All @@ -29,6 +25,6 @@ resource "aws_route53_record" "mx_receive" {
type = "MX"
ttl = "600"
name = local.mail_from_domain
zone_id = data.aws_route53_zone.zone.zone_id
zone_id = var.hosted_zone_id
records = ["10 feedback-smtp.${data.aws_region.current.name}.amazonaws.com"]
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@ variable "domain_name" {
description = "The domain name to configure SES, also used as the resource names"
type = string
}

variable "hosted_zone_id" {
type = string
description = "The Route53 hosted zone id for the domain"
default = null
}

0 comments on commit 523e7b9

Please sign in to comment.