Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 905 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 905 Bytes

AWS Certificate Manager (ACM) Terraform module creating and validating an ACM certificate

Terraform module which creates a ACM certificate in one region and validates it using Route53 DNS.

This is a simplified version of the terraform-aws-modules/acm/aws module which is waiting before returning certificate ARN as the this_acm_certificate_arn output until the validation is completed (returning aws_acm_certificate_validation#certificate_arn instead of aws_acm_certificate#arn). This is necessary for a seamless terraform apply incl. the resources using that certificate.

Usage

module "acm" {
  source  = "babbel/acm/aws"
  version = "~> 1.1"

  primary_domain_name = "example.com"

  domain_names_to_zone_ids = {
    "example.com"     = "XYZXYZXYZXYZXYZ"
    "www.example.com" = "YZXYZXYZXYZXYZX"
  }
}