atmos icon indicating copy to clipboard operation
atmos copied to clipboard

Filter spacelift stacks based on account directories like `folder:stage/qa`, `folder:stage/dev`, etc

Open nitrocode opened this issue 3 years ago • 2 comments

Have a question? Please checkout our Slack Community or visit our Slack Archive.

Slack Community

Describe the Feature

Problem: I'd like to see all the stacks associated for a specific account

Solution: Filter spacelift stacks based on account directories like folder:qa, folder:dev, etc

For instance, my eks component is deployed in auto, corp, dev, qa, staging, and prod in both use2 and usw2 regions. The spacelift stacks for eks all have a label on it like this component/eks so I can search for this label and I can see all the eks components. Success!

However, there isn't a stage specific label. If I wanted to search for all spacelift stacks for the qa account, I could search qa but this would not be helpful since the string is too short and there is no way to have the cardinality that I want.

I suggest we have a new folder called stage and in it we can have the accounts that we desire.

nitrocode avatar Feb 25 '22 01:02 nitrocode

@nitrocode is this still relative?

osterman avatar Apr 19 '23 15:04 osterman

Use cases I can think of

  • If you want to auto attach policies to specific stacks, you may want to use autoattach:folder:stage:qa instead of autoattach:deps:stacks/ue1-qa.yaml
  • Visually filtering stacks by checking the folder for a specific stage e.g. folder:stage:qa

nitrocode avatar Apr 21 '23 19:04 nitrocode