terraform-aws-acm-certificate

AWS ACM DNS Validated Certificate

Terraform module for provisioning a DNS validated certificate, along with the required validation records. The module will wait for validation to complete.

These types of resources are supported:

Usage

module "certificate" {
  source = "git::https://gitlab.com/infraprints/modules/aws/acm-certificate"

  zone_id     = "${data.aws_route53_zone.zone.id}"
  domain_name = "infraprints.io"

  subject_alternative_names = [
    "api.infraprints.io",
    "dev.infraprints.io",
  ]
}

data "aws_route53_zone" "zone" {
  name = "infraprints.io"
}

Examples

Notes

  • The module deploys the required validation records and wait for validation to complete, which can take upwards to 30 minutes.

Inputs

NameDescriptionTypeDefaultRequired
domain_nameA domain name for which the certificate should be issuedstringn/ayes
subject_alternative_namesA list of domains that should be SANs in the issued certificatelist<list>no
ttlThe TTL of the validation record(s).string"60"no
zone_idThe ID of the hosted zone to contain the validation record(s).stringn/ayes

Outputs

NameDescription
arnThe ARN of the certificate that is being validated.
domain_nameThe domain name for which the certificate is issued.
fqdnFQDN built using the zone domain and name.
idThe ARN of the certificate.
validation_record_fqdnsList of FQDNs that implement the validation.