mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-05 10:42:41 -05:00
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
|
recursive_delete = local.recursive_delete
|
||||||
aws_region = "us-gov-west-1"
|
aws_region = "us-gov-west-1"
|
||||||
email_domain = "notify.gov"
|
email_domain = "notify.gov"
|
||||||
|
mail_from_subdomain = "mail"
|
||||||
email_receipt_error = "notify-support@gsa.gov"
|
email_receipt_error = "notify-support@gsa.gov"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ resource "cloudfoundry_service_instance" "ses" {
|
|||||||
json_params = jsonencode({
|
json_params = jsonencode({
|
||||||
region = var.aws_region
|
region = var.aws_region
|
||||||
domain = var.email_domain
|
domain = var.email_domain
|
||||||
|
mail_from_subdomain = var.mail_from_subdomain
|
||||||
email_receipt_error = var.email_receipt_error
|
email_receipt_error = var.email_receipt_error
|
||||||
enable_feedback_notifications = true
|
enable_feedback_notifications = true
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -34,3 +34,9 @@ variable "email_receipt_error" {
|
|||||||
type = string
|
type = string
|
||||||
description = "email address to list in SPF records for errors to be sent to"
|
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}"
|
name = "${local.app_name}-ses-${local.env}"
|
||||||
recursive_delete = local.recursive_delete
|
recursive_delete = local.recursive_delete
|
||||||
aws_region = "us-west-2"
|
aws_region = "us-west-2"
|
||||||
|
mail_from_subdomain = "mail"
|
||||||
email_receipt_error = "notify-support@gsa.gov"
|
email_receipt_error = "notify-support@gsa.gov"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user