Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.02 KB

README.md

File metadata and controls

47 lines (32 loc) · 1.02 KB

Terraform Certificate

This terraform module is maintained by Media Pop, a software consultancy. Hire us to solve your DevOps challenges.

Create and automatically verify a certificate across one or many zones. CloudFront enabled (us-east-1).

Usage

You can specify as many zones and records as you wish following this simple format:

module "cert" {
  source = "mediapop/certificate/aws"

  domains = {
    "zone-name.com." = ["record.zone-name.com"]
    "mediapop.co."   = ["mediapop.co", "*.mediapop.co"]
  }
}

resource "aws_cloudfront_distribution" "redirect" {
  viewer_certificate {
    acm_certificate_arn = module.cert.arn
    ssl_support_method  = "sni-only"

    // ...
  }

  // ...
}

Inputs

Name Description Type Required
domains Map of the zone names to records the certificate is for. map yes

Outputs

Name Description Type
arn The certificate arn string

License

MIT