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
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| domain_name | A domain name for which the certificate should be issued | string | n/a | yes |
| subject_alternative_names | A list of domains that should be SANs in the issued certificate | list | <list> | no |
| ttl | The TTL of the validation record(s). | string | "60" | no |
| zone_id | The ID of the hosted zone to contain the validation record(s). | string | n/a | yes |
Outputs
| Name | Description |
|---|---|
| arn | The ARN of the certificate that is being validated. |
| domain_name | The domain name for which the certificate is issued. |
| fqdn | FQDN built using the zone domain and name. |
| id | The ARN of the certificate. |
| validation_record_fqdns | List of FQDNs that implement the validation. |