Does anyone knows an elegant way to list all stack...
# automation-api
l
Does anyone knows an elegant way to list all stacks in a Project using automation API and an inline source?
m
Not sure if this qualifies as "elegant" but what I've done before with a self-hosted backend is list all folders in the state backend, i.e., the sub-directories of
.pulumi/stacks/${PROJECT_NAME}
l
Yeah, that might be an option. I currently need to select a stack to be able to list all other stacks in the workspace. Feels a bit weird