Sorry for the delay in replying: I moved to do different things for a while.
Anyway, now I’m getting Error: Invalid for_each argument
on the for_each
for the target_group_attachment. As this post is several months old, I’ve posted it as a new topic here: Invalid for_each argument during the aws_lb_target_group_attachment