- Added variable to drive custom mail from configuration - Added resource for MX record to a specific route 53 zone, if custom mail value from is enabled - Add SPF record to local.spf_records list, if custom mail value from is enabled. Current spf resource takes care of - Creating the record if the value is present - Destroying the record if the value is not present (when disabled or variable is not set)
28 lines
597 B
Terraform
28 lines
597 B
Terraform
variable "domain" {
|
|
type = string
|
|
description = "Domain to use for SES."
|
|
}
|
|
|
|
variable "zone_id" {
|
|
type = string
|
|
description = "Route53 Zone ID"
|
|
}
|
|
|
|
variable "extra_txt_records" {
|
|
type = list(string)
|
|
description = "Extra TXT records that have to match the same name as the Fleet instance"
|
|
default = []
|
|
}
|
|
|
|
variable "custom_mail_from" {
|
|
type = object({
|
|
enabled = optional(bool, false)
|
|
domain_prefix = optional(string, "")
|
|
})
|
|
default = {
|
|
enabled = false
|
|
domain_prefix = ""
|
|
}
|
|
description = "Custom MAIL FROM domain settings"
|
|
}
|