acm-route53¶
Example of the acm-route53 module: an ACM certificate validated through DNS
records in an existing Route 53 hosted zone, plus an optional alias record to an ALB.
domain_nameandzone_idare required; the hosted zone must already exist and be authoritative for the domain.- Set
alb_dns_nameandalb_zone_id(outputs of the ALB) to also create the aliasArecord. - Use
validated_certificate_arnas thecertificate_arnof the HTTPS listener so it waits for validation.
Requires AWS credentials for the target account; review with terraform plan before applying.
Requirements¶
| Name | Version |
|---|---|
| terraform | >= 1.6.0 |
| aws | >= 5.0 |
Providers¶
No providers.
Modules¶
| Name | Source | Version |
|---|---|---|
| acm_route53 | ../../modules/acm-route53 | n/a |
Resources¶
No resources.
Inputs¶
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| domain_name | Primary domain name of the certificate, e.g. app.example.com. |
string |
n/a | yes |
| zone_id | ID of the Route 53 hosted zone that contains domain_name. |
string |
n/a | yes |
| alb_dns_name | DNS name of an existing ALB to alias domain_name to. Leave null to skip the alias record. |
string |
null |
no |
| alb_zone_id | Canonical hosted zone ID of the ALB. Required when alb_dns_name is set. |
string |
null |
no |
| region | AWS region where the certificate is issued (must match the ALB region). | string |
"us-east-1" |
no |
| subject_alternative_names | Additional domain names covered by the certificate. | list(string) |
[] |
no |
Outputs¶
| Name | Description |
|---|---|
| alias_fqdn | FQDN of the alias record to the ALB, or null when none was requested. |
| certificate_arn | ARN of the ACM certificate. |
| validated_certificate_arn | ARN of the certificate after DNS validation; pass it to an HTTPS listener. |