Configure SES for a provided stage
- Email Identity
- Domain Identity
- DKIM
- MAIL FROM
- Events to SNS
- Complaint forwarding to the Root Email
- Route53 Records
- no-reply@ bounce message
resource "aws_ses_receipt_rule_set" "primary" {
rule_set_name = "primary-rules"
}
resource "aws_ses_active_receipt_rule_set" "primary" {
rule_set_name = aws_ses_receipt_rule_set.primary.rule_set_name
}
module "stage" {
source = "scaffoldly/aws/stage-email"
for_each = var.stage_domains
stage = each.key
root_email = var.root_email
mail_domain = each.value.platform_domains.mail_domain
dns_provider = lookup(each.value, "dns_provider" "unknown-dns-provider")
dns_domain_id = lookup(each.value, "dns_domain_id" "unknown-dns-domain-id")
rule_set_name = aws_ses_receipt_rule_set.primary.rule_set_name
providers = {
aws.dns = aws.dns
}
}
No modules.
Name |
Description |
Type |
Default |
Required |
domain |
The domain for sending/receiving emails |
string |
n/a |
yes |
root_email |
The AWS account's email address |
string |
n/a |
yes |
rule_set_name |
The active rule set name |
string |
n/a |
yes |
stage |
The stage (e.g. live, nonlive) |
string |
n/a |
yes |
subdomain |
The subdomain for sending/receiving emails |
string |
n/a |
yes |
subdomain_suffix |
The (optional) suffix to append to the subdomain |
string |
n/a |
yes |
zone_id |
The zone ID for var.domain |
string |
n/a |
yes |