|
|
|
|
|
by mdaniel
360 days ago
|
|
> It's not about them being ordered it's about them being unique Ok, so which one of ["a", "b"] in my example isn't unique? And I definitely, unquestionably, never want resources named foo.0 and foo.1 when the input was foo.alpha and foo.beta |
|
If you don't want .0, .1 then you agree with Terraform's design because that's the only way you could for_each over an arbitrary list that might contain duplicate values. Terraform making you turn your lists into sets gets you what you want.