Skip to content

Commit 071bcb8

Browse files
committed
CCM-10296: create internal ses domain with option for overload
1 parent 6c7eb62 commit 071bcb8

13 files changed

+28
-5
lines changed

infrastructure/terraform/components/app/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
| <a name="input_project"></a> [project](#input\_project) | The name of the tfscaffold project | `string` | n/a | yes |
4444
| <a name="input_region"></a> [region](#input\_region) | The AWS Region | `string` | n/a | yes |
4545
| <a name="input_retention_period"></a> [retention\_period](#input\_retention\_period) | Backup Vault Retention Period | `number` | `14` | no |
46+
| <a name="input_ses_overload_domain"></a> [ses\_overload\_domain](#input\_ses\_overload\_domain) | Additional SES domain identity (e.g. from an external domain). Validation DNS records will need to be manually configured in the DNS provider. | `string` | `null` | no |
4647
| <a name="input_url_prefix"></a> [url\_prefix](#input\_url\_prefix) | The url prefix to use for the deployed branch | `string` | `"main"` | no |
4748
## Modules
4849

infrastructure/terraform/components/app/route53_record_ses_dkim_validation.tf renamed to infrastructure/terraform/components/app/route53_record_ses_dkim_validation_main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resource "aws_route53_record" "ses_dkim_validation" {
1+
resource "aws_route53_record" "ses_dkim_validation_main" {
22
count = 3
33

44
zone_id = local.acct.dns_zone["id"]

infrastructure/terraform/components/app/route53_record_ses_dmarc.tf renamed to infrastructure/terraform/components/app/route53_record_ses_dmarc_main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resource "aws_route53_record" "ses_dmarc" {
1+
resource "aws_route53_record" "ses_dmarc_main" {
22
zone_id = local.acct.dns_zone["id"]
33
name = "_dmarc.${aws_ses_domain_identity.main.id}"
44
type = "TXT"

infrastructure/terraform/components/app/route53_record_ses_mail_from_mx.tf renamed to infrastructure/terraform/components/app/route53_record_ses_mail_from_mx_main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resource "aws_route53_record" "ses_mail_from_mx" {
1+
resource "aws_route53_record" "ses_mail_from_mx_main" {
22
zone_id = local.acct.dns_zone["id"]
33
name = aws_ses_domain_mail_from.main.mail_from_domain
44
type = "MX"

infrastructure/terraform/components/app/route53_record_ses_mail_from_txt.tf renamed to infrastructure/terraform/components/app/route53_record_ses_mail_from_txt_main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resource "aws_route53_record" "ses_mail_from_txt" {
1+
resource "aws_route53_record" "ses_mail_from_txt_main" {
22
zone_id = local.acct.dns_zone["id"]
33
name = aws_ses_domain_mail_from.main.mail_from_domain
44
type = "TXT"

infrastructure/terraform/components/app/route53_record_ses_validation.tf renamed to infrastructure/terraform/components/app/route53_record_ses_validation_main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resource "aws_route53_record" "ses_validation" {
1+
resource "aws_route53_record" "ses_validation_main" {
22
zone_id = local.acct.dns_zone["id"]
33
name = "_amazonses.${aws_ses_domain_identity.main.id}"
44
type = "TXT"

infrastructure/terraform/components/app/ses_domain_dkim.tf renamed to infrastructure/terraform/components/app/ses_domain_dkim_main.tf

File renamed without changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
resource "aws_ses_domain_dkim" "overload" {
2+
count = var.ses_overload_domain == null ? 0 : 1
3+
4+
domain = aws_ses_domain_identity.overload[0].domain
5+
}

infrastructure/terraform/components/app/ses_domain_identity.tf renamed to infrastructure/terraform/components/app/ses_domain_identity_main.tf

File renamed without changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
resource "aws_ses_domain_identity" "overload" {
2+
count = var.ses_overload_domain == null ? 0 : 1
3+
4+
domain = var.ses_overload_domain
5+
}

0 commit comments

Comments
 (0)