Does anyone knows an elegant way to list all stacks in a Project using automation API and an inline source?
m
modern-zebra-45309
03/28/2025, 4:13 PM
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
late-chef-72896
04/01/2025, 7:36 AM
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