From 2e08b6823395af9dba375bd1ac1d0b79b3fd7019 Mon Sep 17 00:00:00 2001 From: Thomas Klein Date: Tue, 10 Jan 2023 09:56:35 +0100 Subject: [PATCH] renamed domain var --- certificate.tf | 2 +- data.tf | 2 +- variables.tf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/certificate.tf b/certificate.tf index 1b7a6b2..e44128c 100644 --- a/certificate.tf +++ b/certificate.tf @@ -1,6 +1,6 @@ resource "aws_acm_certificate" "certificate" { domain_name = "${var.domain.sub}.${var.domain.main}" - subject_alternative_names = [for domain in var.additional_domains: "${domain.sub}.${domain.main}"] + subject_alternative_names = [for domain in var.certificate_additional_domains: "${domain.sub}.${domain.main}"] validation_method = "DNS" lifecycle { diff --git a/data.tf b/data.tf index e7956c6..6cd5721 100644 --- a/data.tf +++ b/data.tf @@ -1,6 +1,6 @@ data "aws_route53_zone" "zones" { for_each = { - for domain in concat([var.domain], var.additional_domains) : "${domain.sub}.${domain.main}" => { + for domain in concat([var.domain], var.certificate_additional_domains) : "${domain.sub}.${domain.main}" => { name: domain.main } } diff --git a/variables.tf b/variables.tf index c51deeb..acac2c8 100644 --- a/variables.tf +++ b/variables.tf @@ -42,7 +42,7 @@ variable "domain" { }) } -variable "additional_domains" { +variable "certificate_additional_domains" { type = list(object({ main = string sub = string