terraspace icon indicating copy to clipboard operation
terraspace copied to clipboard

Add support for multiple directory levels within stacks

Open fsuste opened this issue 2 years ago • 5 comments

Summary

Add support for multiple directory levels within stacks

Motivation

At some point, having a lot of stacks becomes cumbersome. And some of the stacks are describing similar problems. Just by grouping them in a directory would solve a lot of headaches. Is this possible by tweaking the load paths?

Reference-level explanation

|--app
    |--modules
    |--stacks
        |--dirA
            |--stackA1
            |--stackA2
        |--dirB
            |--stackB1

etc.

Unresolved Questions

It may already be possible to tweak the load path, but I haven't been able to find the documentation on this.

fsuste avatar Feb 22 '22 09:02 fsuste

Is multiple levels of directories supported for modules now? Because if not then same thing should be done for modules too.

mgzenitech avatar Apr 06 '22 10:04 mgzenitech

Totally agree it will help alot organising stack folders with many files. Thanks lot

vtzan avatar Apr 14 '22 20:04 vtzan

+1 for this.

pocockn avatar Jun 13 '22 08:06 pocockn

+1 for this please @tongueroo

arielr-lt avatar Jun 29 '22 14:06 arielr-lt

+1 for this. We divide our repo per team and some teams have access to their subfolders only. It would turn a lot easier to configure the permissions on that folders for us.

I can run something like terraspace new stack infrastructure/backup/databases and it creates all the folders. But if I use terraspace fmt it doesn't do in cascade, it does only in the top-level folder.

alisson276 avatar May 03 '23 07:05 alisson276