You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using separate modules but all having the same variables. I can make a map variable with the key of each module name and then only have one module resource instead of one per module. I want the source field to be able to use each.key so I can programmatically generate the module source from the variable key e.g. each.key == "module1" so "./modules/${each.key}" would become ./modules/module1
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked as resolved and limited conversation to collaborators
Nov 20, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Current Terraform Version
Use-cases
Using separate modules but all having the same variables. I can make a map variable with the key of each module name and then only have one module resource instead of one per module. I want the source field to be able to use each.key so I can programmatically generate the module source from the variable key e.g. each.key == "module1" so "./modules/${each.key}" would become ./modules/module1
Proposal
The text was updated successfully, but these errors were encountered: