Skip to content

Simple way of creating validated certs over multiple domains and zones.

License

Notifications You must be signed in to change notification settings

mediapop/terraform-aws-certificate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple way of creating validated certs over multiple domains and zones.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages