Terraform CLI
Terraform one function received too many elements
Terraform could not use one because the collection contains more than one element, while one only accepts zero-or-one collections.
Terraform CLI
Terraform could not use one because the collection contains more than one element, while one only accepts zero-or-one collections.
Observed message
Error: Invalid function argument
Why it happens
How to fix it
Official reference
one functionRelated errors
Explore more