elliotpryde / terraform-aws-protonmail-domain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

terraform-aws-protonmail-domain

This module provides a simple way to set up a ProtonMail custom domain using an AWS Route53 hosted zone.

For this to work, your registered domain must be configured to use the AWS hosted zone's name servers to respond to DNS queries for your domain.

Example usage

module "protonmail-domain" {
  source  = "app.terraform.io/elliotpryde/protonmail-domain/aws"
  version = "1.0.0"

  zone_id = aws_route53_zone.my-zone.zone_id
  verification_data = "protonmail-verification=<verification-string>"
  dkim_records = [
    {
      hostname = "protonmail._domainkey",
      data = "protonmail.domainkey.d4zotdvax2nt4447zdfl5bkm6uc3lozcidvlw5jdxq3hhurmq3u5q.domains.proton.ch."
    },
    {
      hostname = "protonmail2._domainkey",
      data = "protonmail2.domainkey.d4zotdvax2nt4447zdfl5bkm6uc3lozcidvlw5jdxq3hhurmq3u5q.domains.proton.ch."
    },
    {
      hostname = "protonmail3._domainkey",
      data = "protonmail3.domainkey.d4zotdvax2nt4447zdfl5bkm6uc3lozcidvlw5jdxq3hhurmq3u5q.domains.proton.ch."
    }
  ]
  dmarc_policy = "quarantine"
  additional_dmarc_flags = [
    "pct=100",
    "rua=mailto:dmarc.admin@somedomain.com"
  ]
}

About

License:MIT License


Languages

Language:HCL 100.0%