Skip to content

Create IAM user and its proper policy to access SES for Mailster plugin on WordPress

License

Notifications You must be signed in to change notification settings

Spofibo/terraform-aws-ses-iam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform module for AWS SES and IAM user configuration

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.

Usage

module "mysite_ses" {
  source = "github.com/Spofibo/terraform-aws-ses-iam"

  name_prefix          = "prod-mydomain"
  domain_name          = "mydomain.com"
  ses_email_identities = ["hello@mydomain.com"]

  enable_bounce_handling = true
  https_bounce_endpoint  = "https://mydomain.com/?mailster_amazonsns=124125125152"

  enable_complaint_handling = true
  notification_recepients   = ["hello@mydomain.com"]
}

Requirements

Name Version
aws ~> 5.9

Providers

Name Version
aws ~> 5.9

Modules

No modules.

Resources

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

Inputs

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

Outputs

Name Description
access_id n/a
access_secret n/a

About

Create IAM user and its proper policy to access SES for Mailster plugin on WordPress

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages