tculp / terraform-aws-ses

Creates a DKIM-validated SES domain and an IAM user

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform-AWS-SES

This module can be used to create a DKIM-verified domain in SES, as well as a user which is able to send emails.

Two AWS providers are used, as Route53 and SES are both not available in all regions.

aws is the provider alias which will be used for SES and IAM. aws.route53 is the provider alias which will be used for Route53.

Requirements

Name Version
terraform >=1.2.0
aws ~> 5.14

Providers

Name Version
aws ~> 5.14
aws.route53 ~> 5.14

Modules

Name Source Version
smtp_user ./modules/smtp-user n/a

Resources

Name Type
aws_route53_record.dkim resource
aws_ses_domain_dkim.this resource
aws_ses_domain_identity.this resource
aws_ses_domain_identity_verification.this resource
aws_route53_zone.selected data source

Inputs

Name Description Type Default Required
create_smtp_user Whether to create a user with SMTP access. bool false no
domain The domain to verify. string n/a yes
hosted_zone_name The name of the hosted zone to create records in, if different from the domain. string null no
ssm_password_path The path in SSM where the SMTP password should be placed. Not used if left as null. string null no
ssm_username_path The path in SSM where the SMTP username should be placed. Not used if left as null. string null no
user_name The name of the IAM user to create. This will NOT be the resulting SMTP username, see output smtp_username. string null no

Outputs

Name Description
smtp_password The SMTP password of the user created.
smtp_username The SMTP username of the user created.

About

Creates a DKIM-validated SES domain and an IAM user

License:Apache License 2.0


Languages

Language:HCL 100.0%