Merge pull request #186 from GSA/custom-mail-from

Add a mail-from subdomain to staging and prod ses
This commit is contained in:
Ryan Ahearn
2023-02-28 12:35:18 -05:00
committed by GitHub
4 changed files with 9 additions and 0 deletions

View File

@@ -63,6 +63,7 @@ module "ses_email" {
recursive_delete = local.recursive_delete
aws_region = "us-gov-west-1"
email_domain = "notify.gov"
mail_from_subdomain = "mail"
email_receipt_error = "notify-support@gsa.gov"
}

View File

@@ -23,6 +23,7 @@ resource "cloudfoundry_service_instance" "ses" {
json_params = jsonencode({
region = var.aws_region
domain = var.email_domain
mail_from_subdomain = var.mail_from_subdomain
email_receipt_error = var.email_receipt_error
enable_feedback_notifications = true
})

View File

@@ -34,3 +34,9 @@ variable "email_receipt_error" {
type = string
description = "email address to list in SPF records for errors to be sent to"
}
variable "mail_from_subdomain" {
type = string
description = "Subdomain of email_domain to set as the mail-from header"
default = ""
}

View File

@@ -64,6 +64,7 @@ module "ses_email" {
name = "${local.app_name}-ses-${local.env}"
recursive_delete = local.recursive_delete
aws_region = "us-west-2"
mail_from_subdomain = "mail"
email_receipt_error = "notify-support@gsa.gov"
}