intellij-hcl
intellij-hcl copied to clipboard
Terraform "context" with several directories and files
I have my Terraform files distributed among several directories those are gathered together in build scripts. And variable values file (.tfvars by default) is located in separate directory as well.
It would be cool to setup a Terraform "context" specifying the directories and files it consists of. So plugin could analyze the files correctly.
Even cooler would be an hierarchy of contexts (e.g. context could consist of files, directories and contexts), because that is why my files are separated to several directories. But if it is too hard/long to implement, just the "context" feature would be enough as well if every file/directory is allowed to be included in several contexts.
Can you solve this issue by using a hierarchy of Terraform modules, instead of copying files by a build tool?