Skip to content

Commit

Permalink
renamed domain var
Browse files Browse the repository at this point in the history
  • Loading branch information
tkjwa committed Jan 10, 2023
1 parent 70a2043 commit 2e08b68
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion certificate.tf
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion data.tf
Original file line number Diff line number Diff line change
@@ -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
}
}
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ variable "domain" {
})
}

variable "additional_domains" {
variable "certificate_additional_domains" {
type = list(object({
main = string
sub = string
Expand Down

0 comments on commit 2e08b68

Please sign in to comment.