cloudposse / cloudposse/atmos

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

Open
#124 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
1.4k
Forks
175
Avg merge
2d 3h
Merged PRs (30d)
134

Description

Have a question? Please checkout our [Slack Community](https://slack.cloudposse.com) or visit our [Slack Archive](https://archive.sweetops.com/).

[![Slack Community](https://slack.cloudposse.com/badge.svg)](https://slack.cloudposse.com)

## 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.

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by locating the existing Spacelift stack-label filtering and account-directory handling, then determine how a distinct stage/account filter should represent values such as qa and dev. Done means users can select those accounts without relying on short-string searches.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, cloud, devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.