Skip to content

Commit

Permalink
Making domain no prefix a list
Browse files Browse the repository at this point in the history
  • Loading branch information
mmgcarlos committed Apr 6, 2023
1 parent a32e4f3 commit abcd2da
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion modules/fastly-frontend/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ resource "fastly_service_v1" "fastly" {
}
dynamic "domain" {
for_each = (var.domain_no_prefix == "" ? [] : [var.domain_no_prefix])
for_each = var.domain_no_prefix
content {
name = domain.value
}
Expand Down
6 changes: 3 additions & 3 deletions modules/fastly-frontend/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ variable "additional_domain_names" {
}

variable "domain_no_prefix" {
type = string
description = "Domain without env prefix used for supporting legacy domain urls"
default = ""
type = list(string)
description = "List of domains without env prefix used for supporting legacy domain urls"
default = []
}

variable "bare_redirect_domain_name" {
Expand Down
6 changes: 3 additions & 3 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ variable "additional_fastly_domains" {
}

variable "domain_no_prefix" {
type = string
description = "Domain without env prefix used for supporting legacy domain urls"
default = ""
type = list(string)
description = "List of domains without env prefix used for supporting legacy domain urls"
default = []
}

variable "env" {
Expand Down

0 comments on commit abcd2da

Please sign in to comment.