项目作者: eric-gonzales

项目描述 :
Terraform module that allows users to query for AWS Certificate Manager (ACM) managed certificates by domain name
高级语言: HCL
项目地址: git://github.com/eric-gonzales/terraform-aws-acm-certificate.git


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.

  1. module "certificate" {
  2. source = "eric-gonzales/terraform-aws-acm-certificate/aws"
  3. domain = "*.example.com"
  4. types = ["IMPORTED"]
  5. statuses = ["ISSUED"]
  6. }
  7. output "base_url" {
  8. value = "${module.certificate.arn}"
  9. }

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.