Giter Club home page Giter Club logo

terraform-aws-stage-email's Introduction

Maintained by Scaffoldly GitHub release (latest SemVer) Terraform Version

Description

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

Usage

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
  }
}

Requirements

Name Version
terraform >= 1.0.0, < 1.1.0

Providers

Name Version
aws 3.57.0
aws.dns 3.57.0

Modules

No modules.

Resources

Name Type
aws_route53_record.dkim_record resource
aws_route53_record.mail_domain_mx resource
aws_route53_record.mail_from_mx resource
aws_route53_record.mail_from_txt resource
aws_route53_record.verification_record resource
aws_ses_configuration_set.configuration_set resource
aws_ses_domain_dkim.dkim resource
aws_ses_domain_identity.identity resource
aws_ses_domain_identity_verification.domain_identity_verification resource
aws_ses_domain_mail_from.mail_from resource
aws_ses_email_identity.identity resource
aws_ses_event_destination.sns_destination resource
aws_ses_event_destination.sns_destination_bounce resource
aws_ses_event_destination.sns_destination_complaint resource
aws_ses_identity_notification_topic.bounce resource
aws_ses_identity_notification_topic.complaint resource
aws_ses_identity_notification_topic.delivery resource
aws_ses_receipt_rule.bounce_noreply resource
aws_sns_topic.bounce resource
aws_sns_topic.complaint resource
aws_sns_topic.events resource
aws_sns_topic_subscription.root_email_compaints resource
aws_caller_identity.current data source
aws_iam_policy_document.event_policy data source
aws_region.current data source

Inputs

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

Outputs

Name Description
domain The full domain for this stage
noreply_address n/a
noreply_rule_name The receipt rule ID for the noreply address
stage Re-output of var.stage

terraform-aws-stage-email's People

Contributors

cnuss avatar

Watchers

James Cloos avatar  avatar

Forkers

ryanoatz99

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.