You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Terraform module that issues ACM certificates for explicit domain names (no implicit wildcard on the primary or optional extras). DNS validation uses Route 53 when you supply hosted zone IDs.
Behaviour
Primary certificate — Always created for domain_name (the exact string passed to aws_acm_certificate).
Optional extra certificates — domain_names is a map of domain => route53_zone_id. Each key gets its own cert for that exact domain (not *.<domain>). Keys equal to domain_name are ignored.
Validation — When r53_zone_id (primary) or a domain_names zone ID is non-empty, the module creates the validation record and waits on aws_acm_certificate_validation. If r53_zone_id is empty for the primary, the primary cert is created but not validated via this module; extra entries with an empty zone ID create certs without validation records in that map slot (see outputs).
Hosted zone ID for primary DNS validation (default "").
domain_names
Optional map of extra domain → zone ID for additional certs (default {}).
Outputs
Name
Description
acm_certificate_arn
Validated primary ARN when only the primary cert exists (cert_count == 1); otherwise null. Uses validated ARN when r53_zone_id != "".
acm_certificate_arns
Map of domain name → ARN: primary under domain_name, plus one entry per domain_names key (validated ARN when zone ID is set, else bare certificate ARN).
module"acm" {
source="git::ssh://git@gitlab.itgix.com/educatedguessteam/tf-modules/tf-module-acm.git?ref=main"domain_name="api.example.com"r53_zone_id="Z00955992K1ILTFSNJ91B"domain_names={
"other.example.com"=""# Leave empty if you don't use route53 for this domain"app.example.net"="Zxxxxxxxxxxxxxxxxxxxx"
}
}