"for_each" value depends on resource attributes that cannot be determined until apply error in cases when it could happen and still be able to use nice naming, that does not trigger resource recreation in case of list values change/reorder.
P.S. Not sure that it should be used anywhere at all.
#terraform