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.
invalid_for_each_argument
terraform