Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform AWS SES module

lint test Tag License

Terraform module to handle the SES resources.

Providers

Name Version
aws >= 6.61

Requirements

Name Version
terraform >= 1.0
aws >= 6.61

Required Inputs

The following input variables are required:

Description: Domain name for which SES will be configured

Type: string

Optional Inputs

The following input variables are optional (have default values):

Description: Whether to create the DKIM CNAME records in Route 53. Set to false when managing the DNS records outside of Terraform.

Type: bool

Default: false

Description: Whether to create the _amazonses TXT record in Route 53 for domain verification. Set to false when managing the DNS record outside of Terraform.

Type: bool

Default: false

Description: Boolean flag for performing the domain identity verification. This is useful when the DNS zone is not handled by Route 53 and once the module outputs the TXT records, the user can create those records elsewhere and return to this module to flip this toggle.

Type: bool

Default: false

Description: Subdomain to use as the MAIL FROM domain (e.g. "mail" produces mail.). Leave empty to disable custom MAIL FROM.

Type: string

Default: ""

Description: Action to take if the MAIL FROM domain's MX record is not found. Valid values: UseDefaultValue, RejectMessage.

Type: string

Default: "UseDefaultValue"

Description: Name of the SNS topic where the bounces are recorded

Type: string

Default: ""

Description: ARN of the SNS topic where the bounces are recorded

Type: string

Default: ""

Description: Name of the SNS topic where the complaints are recorded

Type: string

Default: ""

Description: ARN of the SNS topic where the complaints are recorded

Type: string

Default: ""

Description: Name of the SNS topic where the delivery are recorded

Type: string

Default: ""

Description: ARN of the SNS topic where the delivery are recorded

Type: string

Default: ""

Outputs

Name Description
mail_from_domain The custom MAIL FROM domain. Null when 'mail_from_subdomain' is not set. When 'zone_id' is empty, you must create the MX and SPF records for this domain externally using the 'mail_from_mx_record' and 'mail_from_spf_record' outputs.
mail_from_mx_record MX record value to set on the MAIL FROM domain when DNS is managed outside Route 53. Null when 'mail_from_subdomain' is not set.
mail_from_spf_record SPF TXT record value to set on the MAIL FROM domain when DNS is managed outside Route 53. Null when 'mail_from_subdomain' is not set.
verification_token A code which when added to the domain as a TXT record will signal to SES that the owner of the domain has authorised SES to act on their behalf. If you pass a non-empty string as the value for the 'zone_id' variable, you can ignore this output as the TXT record will be created in the Route 53 zone. Otherwise, you will need to handle the TXT record and use the value of this output.

License

MIT License

Copyright (c) 2023 flaconi

About

Terraform module to handle the AWS SES configuration

Topics

Resources

Stars

0 stars

Watchers

8 watching

Forks

Releases

Packages

Used by

Contributors

Languages