Add a mail-from subdomain to staging and prod ses

This commit is contained in:
Ryan Ahearn
2023-02-28 11:38:58 -05:00
parent 58f8ca47bf
commit b8f66155dc
4 changed files with 9 additions and 0 deletions

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 = ""
}