Open AshleyJackson opened 2 years ago
Would something like this work? Terraform supports mapping resource instances to sets of values out of the box.
resource "gandi_nameservers" "gandi" {
for_each = toset([
"gandiExample1.com",
"gandiExample2.co.uk",
])
domain = each.key
nameservers = [
"ns-31-a.gandi.net",
"ns-84-b.gandi.net",
"ns-200-c.gandi.net",
]
}
A company with a wide range of domains may want to use a list of domains under the "gandi_nameservers" list to change name servers, instead of each domain having their own "gandi_nameservers" resource.
As we can no longer specify nameservers in gandi_domain, I believe this feature would be very useful.
The current design disallows a list and requires a string
An Example of a potential working state:
Thanks.