Skip to content

Instantly share code, notes, and snippets.

View creativeux's full-sized avatar

Aaron Stone creativeux

  • Crux Digital, LLC
  • Evergreen, CO
View GitHub Profile
@creativeux
creativeux / acm.tf
Created April 27, 2018 15:58
Terraform generate and verify certificates for multiple hosted zones
resource "aws_acm_certificate" "cert" {
count = "${length(var.hosted_zones)}"
domain_name = "${lookup(var.hosted_zones[count.index], "domain")}"
subject_alternative_names = ["*.${lookup(var.hosted_zones[count.index], "domain")}"]
validation_method = "DNS"
tags {
Project = "${var.project}"
Environment = "${var.environment}"
}