Skip to content

Filter out empty stacks from describe stacks #141

@Nuru

Description

@Nuru

Describe the Feature

I would like describe stacks to show me only stacks that match the remaining conditions. Currently it always lists all the configured stacks, with stacks not matching the configuration simply being listed as empty. For example, I want

atmos describe stacks --components=vpc 

to show me only the stacks that have the vpc component configured.

Use Case

I want to know where a component is being used for numerous reasons, such as

  • updating the configurations when a breaking change is made to the component
  • finding a valid stack name to use as input to atmos for commands requiring a stack name (such as describe component)
  • comparing currently configured stacks to the list of Terraform workspaces for the component to discover orphaned resources

I am not interested in the stacks which have no configuration for the component.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions