Watch this video on YouTube
You can reference a resource created with for_each using a Splat (*) expression.