terragrunt icon indicating copy to clipboard operation
terragrunt copied to clipboard

Support for terraform workspaces?

Open marco-m-pix4d opened this issue 3 years ago • 23 comments

Hello,

I am evaluating terragrunt, since we have two terraform root modules with a dependency between the twos and we feel the need for something less error prone than performing terraform operations by hand in each directory.

We rely heavily on terraform workspaces and to my understanding terragrunt does not support them. I tend to agree that workspaces are probably not a good idea to start with, but I am trying to understand if there is a sort of migration path for us or if to use terragrunt we have to revolutionize our workflows and terraform configurations.

So I have two questions:

  1. Is there any way / workarounds to use terragrunt with terraform workspaces?
  2. If not, would you be willing to consider a PR that adds minimal workspace support? I see it as a command-line option terragrunt --workspace=foo that would set workspace foo in each root module before performing further operations.

thanks!

marco-m-pix4d avatar Mar 11 '21 13:03 marco-m-pix4d