Skip to content

Terraform module that allows users to query for AWS Certificate Manager (ACM) managed certificates by domain name

Notifications You must be signed in to change notification settings

eric-gonzales/terraform-aws-acm-certificate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform AWS ACM Certificate Module

This repository contains a Terraform module for querying for a certificate managed by the AWS Certificate Manager (ACM).

One can simply reference the domain of the certificate and use the output of this module without having to hard code ARNs as input.

Usage

The following example queries ACM for a certificate and returns its ARN.

module "certificate" {
  source   = "eric-gonzales/terraform-aws-acm-certificate/aws"

  domain   = "*.example.com"
  types    = ["IMPORTED"]
  statuses = ["ISSUED"]
}


output "base_url" {
  value = "${module.certificate.arn}"
}

Limitations

This module purely uses the data source to get the ARN of a certificate in ACM, and does not automate the creation of ACM certificates.

This module also does not use the ACM certificate resource yet, so it doesn't allow for the requesting and management of certificates from ACM.

About

Terraform module that allows users to query for AWS Certificate Manager (ACM) managed certificates by domain name

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages