Skip to content

A Terraform module to create an Amazon Certificate Manager (ACM) certificate with Route 53 DNS validation.

License

Notifications You must be signed in to change notification settings

promenadeviki/terraform-aws-acm-certificate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-aws-acm-certificate

CircleCI

A Terraform module to create an Amazon Certificate Manager (ACM) certificate with Route 53 DNS validation.

Usage

When making use of this module, ensure that either the AWS_DEFAULT_REGION or AWS_REGION environment variable is set. This helps bypass validation checks that want the provider blocks within this module to have a region attribute specified.

provider "aws" {
  region = var.cert_region
  alias  = "certificates"
}

provider "aws" {
  region = var.dns_region
  alias  = "dns"
}

resource "aws_route53_zone" "default" {
  name = "azavea.com"
}

module "cert" {
  source = "github.com/azavea/terraform-aws-acm-certificate"

  providers = {
    aws.acm_account     = "aws.certificates"
    aws.route53_account = "aws.dns"
  }

  domain_name                       = "azavea.com"
  subject_alternative_names         = ["*.azavea.com"]
  hosted_zone_id                    = "${aws_route53_zone.default.zone_id}"
  validation_record_ttl             = "60"
  allow_validation_record_overwrite = true
}

Variables

  • cert_region - AWS Region to create ACM Certificate in (default: us-east-1 ).
  • dns_region - AWS DNS region for associated domain_name (default: us-west-2 ).
  • domain_name - Primary domain name associated with certificate. Also used for the Name tag of the ACM certificate.
  • subject_alternative_names - Subject alternative domain names.
  • hosted_zone_id - Route 53 hosted zone ID for domain_name.
  • validation_record_ttl - Route 53 record time-to-live (TTL) for validation record (default: 60).
  • allow_validation_record_overwrite - Allow Route 53 record creation to overwrite existing records (default: true).
  • tags - A map of extra tags that is associated with the ACM Certificate.

Outputs

  • arn - The Amazon Resource Name (ARN) of the ACM certificate

About

A Terraform module to create an Amazon Certificate Manager (ACM) certificate with Route 53 DNS validation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 89.4%
  • Shell 10.6%