Skip to content

MTA-STS/TLS-RPT AWS Terraform Module • This repository is defined and managed in Terraform

License

Notifications You must be signed in to change notification settings

ministryofjustice/terraform-aws-mtasts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

MTA-STS/TLS-RPT AWS Module

This repo contains a module for deploying an MTS-STS and TLS-RPT policy for a domin in AWS using Terraform.

This consists of using CloudFront/S3 with a Custom Domain to host the MTA-STS policy, with a TLS certificate provided by AWS ACM. It uses Route53 to configure the DNS portions of both MTA-STS and TLS-RPT.

How to use this Module

This module assumes AWS Account with access to Route53, CloudFront, S3, and ACM, which also hosts the DNS (in Route53) for the domain you wish to deploy MTA-STS/TLS-RPT.

module "mtastspolicy_examplecom" {
  source          = "github.com/ukncsc/terraform-aws-mtasts"
  zone_id         = "Z00AAAAAAA0A0A"
  domain          = "example.com"
  mx              = ["mail.example.com"]
  mode            = "testing"
  reporting_email = "tlsreporting@example.com"
}

Pre-existing SMTP records

When consuming this module for an email domain that already has TLS enabled, there is a good chance the resource below will have already been created:

resource "aws_route53_record" "smtptlsreporting" {
  ...
}

In order to resolve this, please import the existing Route53 record into the remote state of the repo that is consuming this module.

Please note: the ability to destroy this particular record has been disabled as it could lead to this module destroying pre-existing SMTP records If you wish to destroy certain instances of MTA-STS, please remove the SMTP record from the state before running destroy

About

MTA-STS/TLS-RPT AWS Terraform Module • This repository is defined and managed in Terraform

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 100.0%