errors.fyi community error code reference
invalid_for_each_argument
terraform

Invalid for_each argument

The value supplied to the for_each meta-argument is not a map or set of strings, or it cannot be determined until apply time. The collection must be fully known at plan time; use toset() or tomap() conversion functions as needed.

References

โ† all namespaces for invalid_for_each_argument