Skip to content

babbel/terraform-aws-acm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
  }
}