for_each is used for when you want to create a variable number of resources (similar to count).
From the code you have presented there doesn’t look to be any variability, just a single object which always is populated (due to the default). As a result for_each isn’t something you should use here.
Instead you just need to reference the variable directly.