Creates a TLS certificate using AWS ACM for domains hosted on Route53.
The ACM certificate can also be attached to an ALB listener.
Creates the following resources:
- ACM certificate
- Route53 record used to validate TLS certificate
- Optional association with an ALB listener
module "acm_cert" {
source = "trussworks/acm-cert/aws"
alb_listener_arn = "arn:aws:elasticloadbalancing:us-west-2:..."
domain_name = "www.example.com"
zone_id = "ABCDEFGHIGJLK1234"
}
Name |
Version |
terraform |
>= 1.0 |
aws |
>= 3.0 |
Name |
Description |
Type |
Default |
Required |
domain_name |
Domain name to associate with the ACM certificate. |
string |
n/a |
yes |
zone_id |
The Route53 zone id for which the certificate should be verified and issued. |
string |
n/a |
yes |
alb_listener_arn |
Associate ACM certificate to an ALB listener. |
string |
"" |
no |
caa_records |
Add CAA records to route53. |
list(string) |
[] |
no |
Name |
Description |
acm_arn |
The ARN of the validated ACM certificate. |
Install dependencies (macOS)
brew install pre-commit go terraform terraform-docs
pre-commit install --install-hooks