Add element to a map where the value depends on some expression

I have a follow-up question where I’m trying to use this local but am hitting a problem with configuring the helm provider which requires a specific cluster whereas I have many Configuring helm provider to work for multiple GKE clusters