Skip to content

terraform-module/terraform-aws-acm

Repository files navigation

Terraform AWS ACM

Terraform module which creates ACM certificates and validates them using Route53 DNS.

Usage example

Here's the gist of using it directly from github.

module acm {
  source  = "terraform-module/acm/aws"
  version = "~> 2"

  domain_name = "example.com"
  zone_id     = "Z0FK2F3K10ACF0"

  validation_method = "DNS"

  subject_alternative_names = [
      "*.example.com"
  ]

  tags = {}
}

Assumptions

Available features

Will not allow to add new SANS due to bug that shoulb de fixed here

Module Variables

Requirements

Name Version
terraform >= 0.12

Providers

Name Version
aws n/a

Inputs

Name Description Type Default Required
allow_overwrite_records Allow creation of this record in Terraform to overwrite an existing record, if any. bool true no
domain_name A domain name for which the certificate should be issued string "" no
subject_alternative_names A list of domains that should be SANs in the issued certificate list(string) [] no
tags A mapping of tags to assign to the resource map(string) {} no
ttl The TTL of the record. number 60 no
validate_certificate Whether or not certificate should be validated bool true no
validation_method Which method to use for validation. DNS or EMAIL are valid, NONE can be used for certificates that were imported into ACM and then into Terraform. string "DNS" no
zone_id The ID of the hosted zone to contain this record. string "" no

Outputs

Name Description
arn Certificate ARN.
distinct_domain_names Distinct domain names.

Commands

$ make help
hooks                          Commit hooks setup
validate                       Validate with pre-commit hooks
changelog                      Update changelog
release                        Create release version

📝 Guidelines

  • 📝 Use a succinct title and description.
  • 🐛 Bugs & feature requests can be be opened
  • 📶 Support questions are better asked on Stack Overflow
  • 😊 Be nice, civil and polite (as always).

License

Copyright 2019 Ivan Katliarhcuk

MIT Licensed. See LICENSE for full details.

How to Contribute

Submit a pull request

Authors

Currently maintained by Ivan Katliarchuk and these awesome contributors.

ForTheBadge uses-git

Terraform Registry