mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-09 23:02:13 -05:00
Merge pull request #186 from GSA/custom-mail-from
Add a mail-from subdomain to staging and prod ses
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
})
|
||||
|
||||
@@ -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 = ""
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user