"Invalid for_each argument" with data source result

A post was split to a new topic: “Invalid for_each argument” with resource attributes