This terraform module creates an SES Domain Identity, an IAM user with its proper policy to interact with SES, and access keys to programmatically access it.
Example usage of this module is to enact the necessary configuration for the Mailster plugin on WordPress.
module "mysite_ses" {
source = "github.com/Spofibo/terraform-aws-ses-iam"
name_prefix = "prod-mydomain"
domain_name = "mydomain.com"
ses_email_identities = ["[email protected]"]
enable_bounce_handling = true
https_bounce_endpoint = "https://mydomain.com/?mailster_amazonsns=124125125152"
enable_complaint_handling = true
notification_recepients = ["[email protected]"]
}
Name | Version |
---|---|
aws | ~> 5.9 |
Name | Version |
---|---|
aws | ~> 5.9 |
No modules.
Name | Type |
---|---|
aws_iam_access_key.this | resource |
aws_iam_user.this | resource |
aws_iam_user_policy.this | resource |
aws_ses_configuration_set.bounce | resource |
aws_ses_domain_identity.this | resource |
aws_ses_email_identity.this | resource |
aws_ses_event_destination.bounce | resource |
aws_sns_topic.bounce_notifications | resource |
aws_sns_topic.complaint_notifications | resource |
aws_sns_topic_subscription.complaint_notifications_recepients | resource |
aws_sns_topic_subscription.https_bounce_configuration | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
domain_name | Domain name | string |
n/a | yes |
enable_bounce_handling | Topic to handle SES bounce notifications | bool |
false |
no |
enable_complaint_handling | Topic to handle SES complaint notifications | bool |
false |
no |
https_bounce_endpoint | HTTPS endpoint for the SNS bounces subscription | string |
n/a | yes |
name_prefix | Name prefix | string |
n/a | yes |
notification_recepients | A list of emails where to send | list(string) |
[] |
no |
ses_email_identities | SES email identities | list(string) |
[] |
no |
Name | Description |
---|---|
access_id | n/a |
access_secret | n/a |