AWS Amazon SES Domain Mail From
This page shows how to write Terraform for Amazon SES Domain Mail From and write them securely.
aws_ses_domain_mail_from (Terraform)
The Domain Mail From in Amazon SES can be configured in Terraform with the resource name aws_ses_domain_mail_from
. The following sections describe 2 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_ses_domain_mail_from" "this" {
behavior_on_mx_failure = var.behavior_on_mx_failure
domain = var.domain
mail_from_domain = var.mail_from_domain
}
resource "aws_ses_domain_mail_from" "mail_from" {
domain = aws_ses_domain_identity.domain_id.domain
mail_from_domain = var.mail_from_subdomain
}
Parameters
-
behavior_on_mx_failure
optional - string -
domain
required - string -
id
optional computed - string -
mail_from_domain
required - string
Explanation in Terraform Registry
Provides an SES domain MAIL FROM resource.
NOTE: For the MAIL FROM domain to be fully usable, this resource should be paired with the aws_ses_domain_identity resource. To validate the MAIL FROM domain, a DNS MX record is required. To pass SPF checks, a DNS TXT record may also be required. See the Amazon SES MAIL FROM documentation for more information.
CloudFormation Example
CloudFormation code does not have the related resource.
Frequently asked questions
What is AWS Amazon SES Domain Mail From?
AWS Amazon SES Domain Mail From is a resource for Amazon SES of Amazon Web Service. Settings can be wrote in Terraform.
Where can I find the example code for the AWS Amazon SES Domain Mail From?
For Terraform, the niveklabs/aws and 7Factor/terraform-aws-ses source code examples are useful. See the Terraform Example section for further details.