intellij-hcl icon indicating copy to clipboard operation
intellij-hcl copied to clipboard

Terraform "context" with several directories and files

Open maxmanuylov opened this issue 8 years ago • 1 comments

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.

maxmanuylov avatar Feb 21 '17 08:02 maxmanuylov

Can you solve this issue by using a hierarchy of Terraform modules, instead of copying files by a build tool?

mkuzmin avatar Mar 01 '17 18:03 mkuzmin